Damian, I see what you are saying, however there are situations where you might want the it initialized (e.g. the value is provided by a factory) - so, yes, it can provide a value if it doesn't exist yet. And the current behaviour is consistent with the rest of Seam (when you reference a value using EL it's create=true and not just a lookup).
I'm not sure of the best solution, but will think about it some more.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099564#4099564
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099564
IIRC it works for s:selectItems but not for s:convertEntity (it should work for a converter which directly loads entitys based on ids from the page). I used to have some caching support inside s:selectItems but removed it as I found it only marginally useful. If you can come up with a good implementation, I would be very willing to add it to Seam.
s:cache is, really, best suited for output only.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099562#4099562
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099562
"asookazian" wrote : So I have a clickable dataTable that's based on a join of two tables. There is a submit button for each row of the dataTable. I can't use the @DataModelSelection annotation (commented below) b/c the List does not consist of only one Entity class, it's based on two.
Don't forget your class has an inheritance hierachy.
anonymous wrote : How can I identify which row needs to be updated and get all the necessary data for the 2nd table to be persisted to DB? 1st table is read-only. sounds like @DataModelSelection is out of the question here (Java generics does not allow me to specify more than one type per Collection).
Page parameters?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099560#4099560
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099560