[
https://jira.jboss.org/jira/browse/RF-7919?page=com.atlassian.jira.plugin...
]
Riccardo Serafin commented on RF-7919:
--------------------------------------
Ok, just to let everyone know what took me some hours to figure out.
I've read the duplicated issue and the related post. Added the missing index property,
and the problem was still there.
It turns out my problem was related with the fact that in values i was returning a
collection of my own column description object. As such, my declaration was something
like:
<rich:columns value="#{columns}" var="column"
sortBy="#{row[column.property]}" sortOrder="#{column.sortOrder}">
what was failing wasn't the sort by, but the sortOrder that is not able to resolve the
additional level of indirection on the column object. I had to introduce an additional
Map<Object,Object> sortOrder and change the declaration to
sortOrder="#{sortOrder[column]}". Now it works.
rich:columns and sorting broken
-------------------------------
Key: RF-7919
URL:
https://jira.jboss.org/jira/browse/RF-7919
Project: RichFaces
Issue Type: Bug
Components: regression
Affects Versions: 3.3.1, 3.3.2.CR1
Reporter: Riccardo Serafin
Assignee: Nick Belaevski
Sorting with dynamic columns use to code with rich:columns defined like this:
<rich:columns value="#{columns}" var="column"
sortBy="#{row[column]}" >
where columns is a list of property names.
We noticed that since version 3.3.1.GA it is not working anymore, but this post
(
http://stackoverflow.com/questions/1119321/richfaces-richcolumns-and-sorting) suggests
that it is not working since 3.3.0.CR2 and we have verified that in 3.3.0.CR1 it was
indeed working as expected.
--
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