[richfaces-issues] [JBoss JIRA] Commented: (RF-6234) Columns: sorting/filtering features don't work when "id" is not explicitly assigned (WAS: Columns: sorting/filtering features dont work)

Riccardo Serafin (JIRA) jira-events at lists.jboss.org
Tue Sep 22 13:46:49 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12486886#action_12486886 ] 

Riccardo Serafin commented on RF-6234:
--------------------------------------

I had a similar problem, and I'd like to share the workaround I had to put in place which is related but not the same.

It turns out my problem was related with the fact that as values i was returning a collection of my own column description objects, not just the property names. As such, my declaration was something like:

<rich:columns value="#{columns}" var="column" sortBy="#{row[column.property]}" sortOrder="#{column.sortOrder}" id="#{column.property}>

what was failing wasn't the sort by, or the id/index, 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.

I'd still appreciate a fix to resolve the regression.

Thanks very much,
Riccardo.


> Columns: sorting/filtering features don't work when "id" is not explicitly assigned (WAS: Columns: sorting/filtering features dont work)
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-6234
>                 URL: https://jira.jboss.org/jira/browse/RF-6234
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-tables
>    Affects Versions: 3.3.0
>            Reporter: Andrei Markavtsov
>            Assignee: Nick Belaevski
>            Priority: Minor
>             Fix For: Future
>
>


-- 
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

        


More information about the richfaces-issues mailing list