title: Using PrimeFaces Global Filter?
body: <p>as Mentioned in primefaces <a href="http://www.primefaces.org/showcase/ui/datatableFiltering.jsf" rel="nofollow">showcase</a> i am trying to create a global filter for datatable . there i am unable to understand what does <strong>carsTable</strong> means, in the code fragment </p>
  
  <pre><code> &lt;h:form&gt;  
  
       &lt;p:dataTable var="car" value="#{tableBean.carsSmall}"  
               emptyMessage="No cars found with given criteria"&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="carsTable.filter()" style="width:150px"/&gt;  
               &lt;/p:outputPanel&gt;  
           &lt;/f:facet&gt; 
  </code></pre>
  
  <p>when i use <strong>my datatableId</strong>  inplace of <strong>carsTable</strong> iam getting an javascript error as Undefined Id.</p>