This content has been marked as final.
Show 2 replies
-
1. Re: @DataModelSelection always outjects first value in list
delphi'sghost May 8, 2007 11:39 PM (in response to paulharrington)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. -
2. Re: @DataModelSelection always outjects first value in list
paulharrington May 9, 2007 2:31 PM (in response to paulharrington)Hi DG,
Thanks for your advice.
I've realised what the problem is. I was using a tomahawk datatable instead of the standard h:dataTable. When I tested with the standard table the @DataModelSelection works OK.
By the way do you know if this a bug with tomahawk?
thanks
Paul