Sorting for rich:scrollableDataTable-rich:column not working unless column id 
attribute is set to a certain (evaluated?) value.
-------------------------------------------------------------------------------------------------------------------------------

                 Key: RF-4194
                 URL: https://jira.jboss.org/jira/browse/RF-4194
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.1
         Environment: Tomcat 6.0, Mojarra 1.2_09-b02
            Reporter: Valery Tcherepanov


My guess is that column id is being evaluated as part of expression while 
sorting.
Sorting in column in scrollableDataTable is working only in case column id 
attribute can be evaluated as a property of a row of  
rich:scrollableDataTable's "value" attribute.
In the demo sorting is working because column id matches the property of the 
table row object :

<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="400px" 
                width="700px" id="carList" rows="40" columnClasses="col"
                value="#{dataTableScrollerBean.allCars}" var="category" 
sortMode="single"
                binding="#{dataTableScrollerBean.table}"
                selection="#{dataTableScrollerBean.selection}">

                <rich:column id="make">
                    <f:facet name="header"><h:outputText 
styleClass="headerText" value="Make" /></f:facet>
                    <h:outputText value="#{category.make}" />
                </rich:column>
...

value="#{dataTableScrollerBean.allCars}" var="category" 
rich:column id="make"

"category"  here does have "make" property, sorting works OK, but if you change 
column id for something else, "noMatch" for instance, the column wouldn't be 
sortable anymore.

This seems to be the source of other related issues like Sorting feature 
doesn't work for dynamic columns(rich:columns) 
https://jira.jboss.org/jira/browse/RF-2413. That bug is marked as closed, but I 
don't see how I can provide correct column ids for dynamic columns and not 
really sure dynamic columns issue was resolved.






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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to