title: DataTable search by Global filter on Prime faces
body: <p>This is My complete code. i want global searchin instead of individual column search.
  please any one help me</p>
  
  <pre><code>&lt;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" &gt;
  
              &lt;p:ajax event="rowSelect" listener="#{employeeCategoryBean.onRowSelect}" /&gt;
              &lt;p:ajax event="contextMenu" listener="#{employeeCategoryBean.onRowSelect}" /&gt;
  
              &lt;f:facet name="header"&gt;  
                        &lt;p:outputPanel&gt;  
              &lt;h:outputText value="Search all fields:" /&gt;  
              &lt;p:inputText id="globalFilter" onkeyup="modelTable.filter()" style="width:150px" /&gt;  
                       &lt;/p:outputPanel&gt;  
                  &lt;/f:facet&gt;
  
  
                  &lt;p:column  headerText="Name" filterBy="#{employeeCategoryBean.selectedModel.name}" 
                  filterStyle="display:none"&gt;
                  #{model.name}  
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Prefix"&gt;
                      #{model.prefix}
                  &lt;/p:column&gt;
  
          &lt;/p:dataTable&gt;
  </code></pre>