title: Primefaces: Hide/Show exact filter in datatable
body: <p>I am creating a dataTable with filters where the filters can be displayed/hidden using a selectBooleanButton. I am able to hide the text filters, but the select box for 'exact' filter does not hide. Code is given below. I would appreciate any help.</p>
  
  <pre><code>&lt;p:dataTable id="orgs" var="id" widgetVar="idTable"
  value="#{orgList.ids}" rows="10"
  rowKey="#{id.idPk}"
  paginator="true" paginatorPosition="top" 
  selectionMode="single" 
  selection="#{orgList.selectedOrg}"
  filteredValue="#{orgList.filteredValues}"
  &gt;
  
  &lt;f:facet name="header"&gt;
      &lt;p:toolbar id="orgListToolbar"&gt;
          &lt;p:toolbarGroup align="right"&gt;
              &lt;p:selectBooleanButton value="#{orgList.showFilter}" onIcon="myfilter" offIcon="ui-icon-minusthick" onLabel="F" offLabel="F"&gt;
                  &lt;p:ajax update="orgs" oncomplete="idTable.clearFilters()"/&gt;
              &lt;/p:selectBooleanButton&gt;
          &lt;/p:toolbarGroup&gt;
      &lt;/p:toolbar&gt;
  &lt;/f:facet&gt;
  
  
  &lt;p:column sortBy="#{id.id}" headerText="Id" filterBy="#{id.id}" filterStyle="#{orgList.showFilter?'':'display: none; visibility: hidden;'}"&gt;
      &lt;h:outputText value="#{id.id}" /&gt;
  &lt;/p:column&gt;
  &lt;p:column sortBy="#{id.idCls.clsName}" headerText="Id Type"             
          filterBy="#{id.idCls.clsName}" filterMatchMode="exact" filterOptions="#{commonLists.selectItemIdClses}" 
          filterStyle="#{orgList.showFilter?'':'display: none; visibility: hidden;'}" &gt;
      &lt;h:outputText value="#{id.idCls.clsName}" /&gt;
  &lt;/p:column&gt;
  </code></pre>
  
  <p></p>