这是我的完整代码。我想要全局搜索而不是单个列搜索。请任何人帮助我
<p:dataTable id="modelList" var="model"
value="#{employeeCategoryBean.list}" paginator="true" rows="10"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="5,10,15" lazy="true" rowKey="#{model.id}"
selection="#{employeeCategoryBean.selectedModel}" selectionMode="single"
widgetVar="modelTable" >
<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" filterBy="#{employeeCategoryBean.selectedModel.name}"
filterStyle="display:none">
#{model.name}
</p:column>
<p:column headerText="Prefix">
#{model.prefix}
</p:column>
</p:dataTable>