I came across two similar issues with extended data table when sorting or filtering. I'll try to illustrate with examples using the below data.
Suppose I have an extended data table with the below data in it, showing up as ordered below by default.
Name | Days
The name column contains h:commandLinks that take you to page X with data for the person whose name was clicked.
Days has sortable = true. User clicks on days header to sort. Stan now appears first in the list. Click on Stan and you go to page X with data for Stan, as expected.
User clicks on the back button. The table now appears in its original sort order, rather than ordered by 'days'. Click on Bob. User goes to the Alan page (which was row 2 after the user sorted), not as expected.
Name has a filterBy associated with it. User types in 'S' and the extended data table re-renders and it just shows 'Stan' and 'Sally' rows. User clicks on Stan, goes to page X for Stan. User does something on page X and hits submit, which returns the user to the page with the extended data table. The table still shows up with just Stan and Sally in it, but if you click Stan, it instead takes you to Alan, which was the original row 1.
Error on my part? Bug?
Please show the code.