You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Ertl (JIRA)" <ji...@apache.org> on 2010/12/01 19:03:11 UTC

[jira] Reopened: (WICKET-2896) OrderByLink should support a ASCENDING -> DESCENDING -> NONE cycle

     [ https://issues.apache.org/jira/browse/WICKET-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Ertl reopened WICKET-2896:
--------------------------------


> OrderByLink should support a ASCENDING -> DESCENDING -> NONE cycle
> ------------------------------------------------------------------
>
>                 Key: WICKET-2896
>                 URL: https://issues.apache.org/jira/browse/WICKET-2896
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 1.4.8
>            Reporter: nicolas de loof
>            Assignee: Peter Ertl
>            Priority: Trivial
>             Fix For: 1.5-M4
>
>
> 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 )
>         {
>             newDir = ISortState.ASCENDING;
>         }
>         if ( oldDir == ISortState.ASCENDING )
>         {
>             newDir = ISortState.DESCENDING;
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.