[
https://jira.jboss.org/jira/browse/RF-4194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Mishin reassigned RF-4194:
-------------------------------------
Assignee: Tsikhon Kuprevich (was: Konstantin Mishin)
> Sorting for rich:scrollableDataTable-rich:column not working unless column id
> attribute is set to a value that can be evaluated .
> ---------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Tsikhon Kuprevich
> Fix For: 3.2.2
>
>
> While sorting column id is being evaluated as part of expression.
> 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, column is sorted on outcome of
> #{category.make} expression, but if column id changed for something else,
> "notAProperty" for instance, the column wouldn't be sortable anymore.
> Further, if column id is set to another property, for example:
> rich:column id="someProperty"
> and expression "#{category.someProperty}" can be evaluated - the column will
> be sorted by "#{category.someProperty}" no matter what outputText value for
> column is.
> 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