title: JSF DataTable filter example
body: <p>I have the following code.</p>
  
  <pre><code>&lt;p:column  headerText="Bank"&gt;
      &lt;f:facet name="header"&gt;
      &lt;p:selectOneMenu id="bank" value="#{reportsExecHistManagedBean.bankList}"&gt;
      &lt;f:selectItem itemLabel="Select Bank" itemValue="" /&gt;
          &lt;f:selectItems value="#{reportsExecHistManagedBean.bankList}"/&gt;
          &lt;/p:selectOneMenu&gt;
          &lt;/f:facet&gt;
          &lt;h:outputText value="#{tr.bank}" /&gt;
          &lt;/p:column&gt;
  </code></pre>
  
  <p>how to enable filtering here, e.i when user select any selectItem, datatable shows filtered values. Also i have lazyLoading in my table. I do not want to following code</p>
  
  <pre><code>   &lt;p:column headerText="Bank" filterBy="#{tr.bank}" style="text-align:left; width:10px;"  filterOptions="#{reportsExecHistManagedBean.bankList}" filterMatchMode="exact"&gt;
                              &lt;h:outputText value="#{tr.bank}"/&gt;
                          &lt;/p:column&gt;
  </code></pre>