Hi, can someone please explain the following behaviour to me: 
I have a dataTable and am using myfaces automatic sorting (although I have
the same issue using the old commandSortHeader method). For each row in the
table I have a link which is supposed to open an editable form representing
the data in the selected row. 
I have a managed bean which contains an ArrayList of data objects, this list
is passed to the datatable. The managed bean also has the sort method which
basically sorts or reverses the sort on the ArrayList. The link on each row
is an updateActionListener which passes the selected index to a method on
the managed bean which just retrieves the data object using the
arraylist.get(index) method. The problem is that there seems to be a copy of
the list which is not sorted. So if I select the item in the first row of
the datatable I get the first object in the arraylist. If I reverse the sort
on the table and select the 
-- 
View this message in context: 
http://www.nabble.com/Selecting-Row-on-sortable-Datatable-tf1905482.html#a5214553
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to