views:

379

answers:

3

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>
A: 

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.

valli
did not workthe examples I have seen, the id of the columns is concatenate with index, is this necessary?
Tyemy
A: 

I still can not resolve

Tyemy
A: 

Did you resolve it? I have the same problem.

Alex