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?
– Allan Braga
Yes is implemented in the classes
– Daniel Azevedo