[jboss-user] [JBoss Seam] - Re: Adding/Persisting A Record Problem...

petemuir do-not-reply at jboss.com
Mon Oct 23 05:03:16 EDT 2006


So (point 2 is the key)

1) You presumably don't get any exceptions

2) What does <h:messages /> give for the dropdown box.  You've probably hit a conversion error. (You have <h:messages globalOnly="true" /> but none for the h:selectOneMenu)

3) Try adding a public void setExample(Room example) {...} method - how else can the roomFinder.example get updated?!

4) You don't want @Out and @SelectItems on the same outjection as @SelectItems does an outjection itself (having wrapped the list you provide in a list of SelectItem)

5) In the @Factory method for roomListByOrganisation you are setting List to be a List - this is wrong.  Just set it to be a list of Room as you do about 2/3rds of the way down the method.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979958#3979958

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979958



More information about the jboss-user mailing list