0 Replies Latest reply on Mar 19, 2009 9:53 AM by Paulo Pinto

    Filtering and Sorting not working as expected on RichFaces 3

    Paulo Pinto Novice

      Hi everyone,

      I am trying to use a richFaces table with filtering and sorting enabled, but it isn't working.

      When I click in one of the sorting arrows or start typing a filter value, a request is made, and as result I get an empty page.

      My code is as follows:

       <rich:dataTable value="#{records}" var="row">
       <rich:column sortBy="#{row.id}" filterBy="#{row.id}" filterEvent="onkeyup">
       <f:facet name="header">
       <h:outputText value="id"/>
       <h:outputText value="#{row.id}"/>
       <rich:column sortBy="#{row.name}" filterBy="#{row.name}" filterEvent="onkeyup">
       <f:facet name="header">
       <h:outputText value="name"/>
       <h:outputText value="#{row.name}"/>

      records is a variable containing a Result instance.

      I am using Facelets for my pages. I even tried to use a list for my values instead, and it did not work as well.

      Any ideas what I am doing wrong?

      Thanks in advance,
      Paulo Pinto