1 Reply Latest reply on Jul 7, 2009 6:16 AM by nbelaevski

    rich:columns sortBy and filterBy


      I have a problem using sortBy and filterBy with rich:columnS.

      I already looked at the examples and the developer guide but it seems that i just can't get it.

      I have rich:columns like:

      <rich:columns var="attribute" sortBy="#{item.attributes[attribute]}" filterBy="#{item.attributes[attribute]}" value="#{selectBean.lagerAttributeCaptions}">
       <f:facet name="header">
       <h:outputText value="#{attribute}"/>
       <h:outputText value="#{item.attributes[attribute]}"/>

      where item is my dataset and item.attributes is my map with entries like "length=10" - lagerAttributeCaptions is a list with the keys of the map (e.g. "length"). Everything is displayed fine but sorting and filtering doesnt work!

      Could anyone please point me the right direction? Or could anyone give me a working example WITH bean code?

      Many thanks in advance!

      Best Regards,