Hi there,
does anyone know how to properly enable sorting on a rich:dataTable with columns generated on the fly using rich:columns tag?
Setting sortBy with an expression like #{row[column]} doesn't work for me.
I'm using RichFaces 3.3.1GA.
Here's the example:
<rich:dataTable id="table" value="#{localeHandler.locales}" var="row">
<rich:columns value="#{localeHandler.columns}" var="column" sortBy="#{row[column]}" >
<f:facet name="header">
<h:outputText value="#{column}"/>
</f:facet>
<h:outputText value="#{row[column]}"/>
</rich:columns>
</rich:dataTable>
whereas the localeHandler.locales is an ArrayList and localeHandler.columns is just an ArrayList containing the following values:
language, country, variant, displayName, displayLanguage, displayCountry, displayVariant