Automatic sort feature for extended data table
----------------------------------------------

         Key: TOMAHAWK-265
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-265
     Project: MyFaces Tomahawk
        Type: New Feature

  Components: Extended Datatable  
 Environment: All
    Reporter: Catalin Kormos
    Priority: Minor
 Attachments: patch.zip

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to