Enchance tr:column's sortProperty to accept numeric index if table's row class 
is array or List
-----------------------------------------------------------------------------------------------

                 Key: TRINIDAD-1002
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1002
             Project: MyFaces Trinidad
          Issue Type: Improvement
          Components: Components
            Reporter: Vadim Dmitriev


Currently sortProperty is attempted to be resolved by SortableModel only via 
PropertyResolver.getProperty( Object, String ). It's ok, if underlying 
DataModel wraps List of Maps or some kind of ValueObjects. Problem here is if 
DataModel's row items are in turn Lists or arrays. In that case 
PropertyResolver.getProperty( Object, String ) will fail and 
PropertyResolver.getProperty( Object, int ) should be used instead.
Maybe property resolution process can be enchanced to use different versions of 
getProperty method depending on wrapped items class: 'int' version for List or 
array and 'String' in all other cases?

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

Reply via email to