[jboss-user] [Beginners Corner] - How can I handle a Collection/Set in JSF

Smilidon do-not-reply at jboss.com
Mon Nov 3 05:39:35 EST 2008


Hi,

in my entity relations I have to use java.util.Set. If i want to use these objects in a DataTable with JSF(RichFaces), I always have to convert/cast my Set to a ArrayList. With creating a new ArrayList of my entities, I also lose the references to my objects, so if they are changed in the jsf view, i have to convert it back again to a Set, to store it to the database. Is there a pattern to handle this problem?

Thanks

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

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



More information about the jboss-user mailing list