Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2896

OrderByLink should support a ASCENDING -> DESCENDING -> NONE cycle

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.8
    • 1.5-RC1
    • wicket-extensions

    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 )

      { newDir = ISortState.ASCENDING; }

      if ( oldDir == ISortState.ASCENDING )

      { newDir = ISortState.DESCENDING; }

      Attachments

        Activity

          People

            pete Peter Ertl
            ndeloof nicolas de loof
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: