Hello, I am trying to use t:dataTable from Tomahawk to build a sortable table. The sort criteria (column which is used for sorting, asc vs. desc) should persist (in the session) so that when the use comes back to table after visiting other pages the same sort criteria should be automatically applied he used the last time. After perusing the API I thought this should be possible with these attributes.
However I cannot make it work. The sorting criteria are stored in my backing bean, but when I navigate back to the table they are not applied.
I'd like to know too. I've tried to use the "Automatically sortable by choosen columns" example (which look like yours) from myfaces-example-simple-1.1.7, just changing the backing bean's scope from request to session, but it didn't work either. Only the sorted column header is preserved, not the data itself...
I also have the problem, that I use the sorting of the datatable. if I click the column labels, everything works fine.
After leaving the page or navigating to another and go back to the page, the sorting does not work anymore.
I want to have to same sorted view as I left the page.
Is there any Action necessary to start the sorting? I use the <t:column sortable="true"> with nested <t:commandSortHeader...> tags.
If someone solved the problem, please reply.
PS: the use of <t:column defaultSorted="true"... is a bug of Tomahawk.