p:selectOneMenu does not correctly filter the dataList

Asked

Viewed 63 times

0

I have a column with the filter p:selectOneMenu . I use it to filter a column that has lines that can have one or several attributes. Then I use the Primefaces component p:dataList to show this list. But the filter only takes the first item of the dataList, if it filters through the others that are in the row of that column it does not filter.

<p:column filterBy="#{projeto.listaLinhaPesquisas[0].nome}" headerText="Linha de Pesquisa">
                <f:facet name="filter">
                <p:selectOneMenu onchange="PF('projetoTable').filter()" >
                    <f:selectItem  itemLabel="Selecione..." itemValue="#{null}" noSelectionOption="true"/>
                    <f:selectItems value="#{gestaoProjetosBean.listaLinhaPesquisas}"
                        var="linhaPesquisa" itemLabel="#{linhaPesquisa.nome}"
                        itemValue="#{linhaPesquisa.nome}" />
                </p:selectOneMenu>
                </f:facet>
                <p:dataList value="#{projeto.listaLinhaPesquisas}" var="linhaPesquisa">
                    <h:outputText value="#{linhaPesquisa.nome}"/>
                </p:dataList>
            </p:column>
  • You implemented the equals and hashcode?

  • Yes is implemented in the classes

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.