richfacesfilteringrichdatatable

Rich:Columns - FilterBy


Good morning!!

I have a dynamic datatable and I'm using Columns of Richfaces, but when I assign the value to FilterBy, it does not work. Can anyone help me? Woe is my code ..

<rich:dataTable id="dtAtendimento" value="#{CadastroAtendimentoTecnico.listaAtendimento}" var="atendimento">
    <rich:columns index="index" value="#{CadastroAtendimentoTecnico.listaCampos}" var="column" filterBy="#{column.nomeAtributo}" filterEvent="onKeyUp">
        <f:facet name="header">
            <h:outputText value="#{column.label}"/>
        </f:facet>
        <h:outputText value="#{atendimento[column.nomeAtributo]}"/>
    </rich:columns>
</rich:dataTable>

Solution

  • Try adding sortBy="#{column.nomeAtributo}" and sortOrder to rich:columns it will work. I came to know that we have such problems on early version. Please try RF 3.2.1. I think it should solve the problem otherwise.