It is important to emphasize that filterEvent is an attribute of the dataTable tag, in this, for example, the javascript workaround showed in the column tag, but this does not work very well. You can use the following:
<p:dataTable id="companyTable" value="#{fooManager.foo}" var="foo" filterEvent="enter"> <p:column filterBy="#{foo.name}" > <h:outputText value="#{foo.name}" /> </p:column> </p:dataTable>
Or you can use with filterEvent = "Keyup", which is the default value of this attribute and filterDelay defined in 1000 milliseconds, before sending an ajax filter request (default 300 milliseconds), for example, for example:
<p:dataTable id="companyTable" value="#{fooManager.foo}" var="foo" filterEvent="keyup" filterDelay="1000"> <p:column filterBy="#{foo.name}" > <h:outputText value="#{foo.name}" /> </p:column> </p:dataTable>
I hope to help you.
source share