jayjaypg22
jayjaypg22

Reputation: 1751

Displaytag sort my table but only on first page

I use a display table on a formBean :

<display:table name="${TableReferentielleFormBean.listeTableReferentielle}"
     id="listeTableReferentielle" pagesize="${nb}" width="100%" class="table-separateur"
     requestURI="${requestURI}" > 

When I click on a column header on a paginated table, my result is a well sorted list in the table on first page. but the sort is lost when I click on another page of my table. Is there a configuration for display tag in order to keep this sorting criteria? Everything is managed by display tag with its request parameters (d-xxx-s etc.) and nothing in my servlet (requestURI value). I 've already the displaytag.properties customized with the sort.amount = list value and I'm sure that this properties file is taken into account (I change another property to test it).

Upvotes: 2

Views: 2421

Answers (1)

Steve
Steve

Reputation: 3571

Try setting sort="list" right in your display:table declaration.

Upvotes: 3

Related Questions