I have code below form. . i wanted to search globally. please suggest me how can i do it
<p:ajax event="rowSelect" listener="#{employeeCategoryBean.onRowSelect}" />
<p:ajax event="contextMenu" listener="#{employeeCategoryBean.onRowSelect}" />
<f:facet name="header">
<p:outputPanel>
<h:outputText value="Search all fields:" />
<p:inputText id="globalFilter" onkeyup="modelTable.filter()" style="width:150px" />
</p:outputPanel>
</f:facet>
<p:column headerText="Name">
#{model.name}
</p:column>
<p:column headerText="Prefix">
#{model.prefix}
</p:column>
All is on the primefaces page
http://www.primefaces.org/showcase/ui/datatableFiltering.jsf
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.