This content has been marked as final.
Show 2 replies
-
1. Re: EntityQuery and @DataModelSelection
ranophoenix Feb 18, 2010 12:12 PM (in response to lasuchobciuch)EntityQuery is by default an Event scope component. Change it to Page scope and your code must work.
Regards,
-
2. Re: EntityQuery and @DataModelSelection
lasuchobciuch Feb 18, 2010 5:29 PM (in response to lasuchobciuch)Thanks for reply
I have changed the code and now get this exception:javax.el.ELException: /DataList.xhtml @419,92 value="#{data.dataModelSelection.id}": Error reading 'dataModelSelection' on type org.domain.testpro.session.DataList_$$_javassist_seam_2
I use entities generated with jboss tools with some modifications.
If i change this line:<h:outputText value="#{data.dataModelSelection.id}" id="text2" />
into
<h:outputText value="#{data.dataModelSelectionIndex}" id="text2" />
I won't get exception, but clicking on row shows good index for just a second and then changes to -1