Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.4.8
Description
Trying to extend SortableDataProvider to support multiple sorting criteria (based on http://www.mail-archive.com/users@wicket.apache.org/msg14246.html), the ordering feature on DataTable cannot be used to get back to the "NONE" state. A simple change in OrderByLink can be used to fix this :
int newDir = ISortState.NONE;
if ( oldDir == ISortState.NONE )
if ( oldDir == ISortState.ASCENDING )
{ newDir = ISortState.DESCENDING; }