Set preserveSort to false as that will make the component attempt to
store the sort state instead of letting the backing bean (in this
case) store it.

On 6/8/07, Wyder, Michael (GMX) <[EMAIL PROTECTED]> wrote:
Hi

I have 2 jsp's. Page A is the list which can be sorted, the other page B
is a detail page who shows detail of one entry from page A. My problem
is, that the choosen sort is not preserved: I do some sort on page A,
then i navigate to page B. Afterthat i navigate back to page A and i see
that the sort of the list is reseted to the default sort. Any ideas?
Both pages are backed by the same bean, which has session scope.

I made some debug and saw, that the entries in the DataModel in the
backing bean never change its order, even if i do some sort.

Here the declaration of the datatable:

<t:dataTable
        var="address"
        value="#{adresseServiceBean.addresses}"
        sortable="true"
        sortColumn="#{adresseServiceBean.sortColumn}"
        sortAscending="#{adresseServiceBean.sortAscending}"
        preserveSort="true"
        renderedIfEmpty="false">

Thanks for help!
Michael

Reply via email to