MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-265

Automatic sort feature for extended data table

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.3
    • Component/s: Extended Datatable
    • Labels:
      None
    • Environment:
      All

      Description

      The main new feature is, to allow obtaining a sortable table with little effort. By specifying a sortable=true attribute on the dataTable, command sort header components will be automaticaly added to each column header, if not present already, wrapping the current content of the header facet, and the sorting will be performed by the property obtained from the output component displaying the cell's content. Using the t:column component for the columns, will allow specifying also the default sorted column, using the new defaultSorted=true attribute.

      The actual sorting by columns is handled by a new SortableModel, integrated into MyFaces from ADF Faces, which acts as a wrapper for the current model, and uses row object's properties to perform sort.

      I created also a new page in myfaces examples/simple, to show how can this be used.

      I think it's a nice feature to have, and could be further enhanced, i hope you guys will feel the same.

      Regards,
      Catalin

      1. patch.zip
        15 kB
        Catalin Kormos

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        21s 1 Catalin Kormos 21/Apr/06 02:32
        Patch Available Patch Available Closed Closed
        2d 6h 30m 1 Martin Marinschek 23/Apr/06 09:03
        sean schofield made changes -
        Fix Version/s 1.1.3-SNAPSHOT [ 12310970 ]
        Fix Version/s 1.1.3 [ 12311951 ]
        Hide
        Catalin Kormos added a comment -

        Hi Martin,

        Yes it is , thanks for your help.

        Regards,
        Catalin

        Show
        Catalin Kormos added a comment - Hi Martin, Yes it is , thanks for your help. Regards, Catalin
        Martin Marinschek made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.1.3-SNAPSHOT [ 12310970 ]
        Status Patch Available [ 10002 ] Closed [ 6 ]
        Hide
        Martin Marinschek added a comment -

        Thanks, Catalin.

        This is a cool new feature - it's very simple now to do sorting with MyFaces.

        regards,

        Martin

        Show
        Martin Marinschek added a comment - Thanks, Catalin. This is a cool new feature - it's very simple now to do sorting with MyFaces. regards, Martin
        Hide
        Martin Marinschek added a comment -

        This is real great.

        I'll review this right now.

        regards,

        Martin

        Show
        Martin Marinschek added a comment - This is real great. I'll review this right now. regards, Martin
        Martin Marinschek made changes -
        Assignee Martin Marinschek [ mmarinschek ]
        Catalin Kormos made changes -
        Attachment patch.zip [ 12325630 ]
        Catalin Kormos made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Catalin Kormos created issue -

          People

          • Assignee:
            Martin Marinschek
            Reporter:
            Catalin Kormos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development