You're not the only with this problem, but if you need to find out the row object from the selected row you could also use the <t:updateActionListener>, like the following:

<h:commandLink value="#{car.id}">
       <t:updateActionListener property="#{autosortlist.selectedCar}" value="#{car}"/>
</h:commandLink>

HTH,
Catalin

joelus <[EMAIL PROTECTED]> wrote:

Thanks Holger, but I have the same problem using this method.
As soon as I sort the rows in the datatable they are out of sync with the
backing bean.
Somehow, somewhere, a copy of the list exists as it was originally sorted,
and selecting a row, either with index or an actionlistener as in the link
you gave me, returns the from this original list. Sorting the datatable
doesn't effect this list so it goes out of sync. It's very frustrating.
Surely I can't be the only one with this problem?
--
View this message in context: http://www.nabble.com/Selecting-Row-on-sortable-Datatable-tf1905482.html#a5218575
Sent from the MyFaces - Users forum at Nabble.com.



Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.

Reply via email to