0 Replies Latest reply on May 12, 2010 10:14 AM by Costin Rusu

    How to hide filters at runtime for rich:extendedDataTable?

    Costin Rusu Newbie

      I have a rich:extendedDataTable with columns which have defined filterBy="#{...}" and filterEvent="onkeyup" attributes.

      I want to make the filters dissapear when I click a button which calls a function by ajax.

      I tried the following function but it doesn't work, the filters are still there after rerender the table:


      public void hideTableFilters(){
          Iterator it1 = myTable.getChildColumns();
              Object obj = it1.next();
              if(obj instanceof HtmlColumn){
                  HtmlColumn column = (HtmlColumn)obj;