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"/> </f:facet> <h:outputText value="#{row.id}"/> </rich:column> <rich:column sortBy="#{row.name}" filterBy="#{row.name}" filterEvent="onkeyup"> <f:facet name="header"> <h:outputText value="name"/> </f:facet> <h:outputText value="#{row.name}"/> </rich:column> </rich:dataTable> </h:form>