FilterBy using column doesn't work in primefac

2019-09-02 18:39发布

问题:

Here is the source code of my .xhtml file when the datatable appears i try to filter by id in olumn it doesn't work. I have looked for the solution and i found that there is another mechanism in primefaces 5.3 that i don't understand please if you can help me. I'm newbie to primesfaces and JSF Thank you

<p:column  filterBy="#{student.id}" filterMatchMode="contains">
                <f:facet name="header">
                    <h:outputText value="Id" />
                </f:facet>
                <h:outputText value="#{student.id}" />
            </p:column>