title: Primefaces datatable filter
body: <p>I've tried a few things but I could not do any work on my filter dataTable. Already follow the example of the primefaces showcase and nothing.</p>
  
  <p>I have the following codes:</p>
  
  <p>xhtml:</p>
  
  <pre><code>&lt;p:dataTable id="dataTable" var="valor" value="#{beanMensagemXContato.listaContatoEmail}" 
                  widgetVar="carsTable" emptyMessage="No cars found with given criteria" filteredValue="#{tableBean.filteredCars}"&gt;                           
  
                  &lt;f:facet name="header"&gt;  
  
                      &lt;/f:facet&gt; 
  
                      &lt;p:column 
                          style="max-width: 50px; min-width: 50px; overflow: hidden"&gt;
                          &lt;f:facet name="header"&gt;
                              &lt;h:outputText value="Contato" /&gt;
                          &lt;/f:facet&gt;
                          &lt;h:outputText value="#{valor.nomGrupoEmail}" /&gt;
                      &lt;/p:column&gt;
  
                      &lt;p:column
                          style="max-width: 50px; min-width: 50px; overflow: hidden"&gt;
                          &lt;f:facet name="header"&gt;
                              &lt;h:outputText value="Email" /&gt;
                          &lt;/f:facet&gt;
                          &lt;h:outputText value="#{valor.endEmail}" /&gt;
                      &lt;/p:column&gt;
  
                      &lt;p:column
                          style="max-width: 50px; min-width: 50px; overflow: hidden"&gt;
                          &lt;f:facet name="header"&gt;
                              &lt;h:outputText value="Telefone" /&gt;
                          &lt;/f:facet&gt;
                          &lt;h:outputText value="#{valor.numTelefone}" /&gt;
                      &lt;/p:column&gt;
  
                      &lt;p:column
                          style="max-width: 50px; min-width: 50px; overflow: hidden"&gt;
                          &lt;f:facet name="header"&gt;
                              &lt;h:outputText value="Ações" /&gt;
                          &lt;/f:facet&gt;
  
                      &lt;/p:column&gt;
  
  
                  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>Bean:</p>
  
  <pre><code>public List&lt;ContatoEmail&gt; getListaContatoEmail() {
  
          listaContatoEmail = new ArrayList&lt;ContatoEmail&gt;();
          listaContatoEmail = consultaContatoEmail.listarContatoEmail();
  
          return listaContatoEmail;
      }
  </code></pre>
  
  <p>I want something that when you type a word in dataTable select the row.</p>
  
  <p>Can someone pass me a simple example.</p>
  
  <p>Since I already appreciate.</p>
  
  <p>Debora</p>