[jboss-user] [JBoss Seam] - Re: @DataModelSelection always outjects first value in list
Delphi's Ghost
do-not-reply at jboss.com
Tue May 8 23:39:04 EDT 2007
Can you post your h:datatable or whatever you are using to display the list.
Off the top of my head, when I get these problems it's because I am using the member variable for the list source as opposed to the context variable. Check that you are using :
| <h:dataTable value="#{myCurrentPage}" var="myvar">
|
and not :
| <h:dataTable value="#{appUserListAction.myCurrentPage}" var="myvar">
|
Also, I forget how this works with the Page scope, but it may be that the list is being recreated before being outjected, thus the selection is at the first item since it has just been created.
Just for fun, try removing the scope on the datamodel just to see if keeping the list around longer works.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044154#4044154
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044154
More information about the jboss-user
mailing list