title: Filter on adf Table using view object
body: <p>I need a filter on my af:table, already tried native adf method <code>filterVisible="true"</code> and by setting <code>filterable="true"</code> but it doesn't return the results on the table. Also tried to do this using manageBean method which, I am going to post below:</p>
  
  <p><strong>jsff page</strong></p>
  
  <pre><code>&lt;af:commandButton text="Filter" id="cb1" actionListener="#
  {pageFlowScope.paisMB.filterTableAction}"/&gt;
  
  &lt;af:table value="#{bindings.PaisUVO.collectionModel}" var="row"
                rows="#{bindings.PaisUVO.rangeSize}"
                emptyText="#{bindings.PaisUVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                fetchSize="#{bindings.PaisUVO.rangeSize}"
                rowBandingInterval="0" styleClass="AFStretchWidth"
                selectionListener="#{bindings.PaisUVO.collectionModel.makeCurrent}"
                rowSelection="single" id="t1" binding="#{pageFlowScope.paisMB.tableData}"
                scrollPolicy="page" autoHeightRows="0"
                filterModel="#{bindings.PaisUVOQuery.queryDescriptor}"
                queryListener="#{bindings.PaisUVOQuery.processQuery}" filterVisible="true"&gt;
          &lt;af:column sortProperty="#{bindings.PaisUVO.hints.NewsiteOxiLingua.name}"
                      sortable="false"
                      headerText="#{bindings.PaisUVO.hints.NewsiteOxiLingua.label}"
                      id="c6"&gt;
              &lt;af:outputText value="#{row.NewsiteOxiLingua}" id="ot3"/&gt;
           &lt;/af:column&gt;
  
           &lt;af:column sortProperty="#{bindings.PaisUVO.hints.NewsiteOxiPaisesPk.name}"
                      sortable="false"
                      headerText="#{bundle['lbl_codigo']}"
                      id="c5"&gt;
              &lt;af:outputText value="#{row.NewsiteOxiPaisesPk}" id="ot4"&gt;
                 &lt;af:convertNumber groupingUsed="false"
                              pattern="#{bindings.PaisUVO.hints.NewsiteOxiPaisesPk.format}"/&gt;
              &lt;/af:outputText&gt;
           &lt;/af:column&gt;
  
           &lt;af:column sortProperty="#{bindings.PaisUVO.hints.NewsiteOxiPaisesNome.name}"
                      sortable="false" filterable="true"
                      headerText="#{bundle['lbl_pais']}"
                      id="c7"&gt;
              &lt;af:outputText value="#{row.NewsiteOxiPaisesNome}" id="ot2"/&gt;
           &lt;/af:column&gt;
  &lt;/af:table&gt;
  </code></pre>
  
  <p>I want to filter my last column.Below is my java code for search button.</p>
  
  <p><strong>Manage Bean Page</strong></p>
  
  <pre><code>private transient RichTable tableData;
  private RichInputText countryName;
  public void filterTableAction(ActionEvent actionEvent) {
      RichTable tb1 = this.getTableData();
      FilterableQueryDescriptor filterQD = (FilterableQueryDescriptor)tb1.getFilterModel();
      Map filterCriteria = filterQD.getFilterCriteria();
      filterCriteria.put("NewsiteOxiPaisesNome", countryName.getValue());
      LOGGER.warning("Filter Criteria : " + filterCriteria);
      getTableData().queueEvent(new QueryEvent(getTableData(), filterQD));
      AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTableData());
      LOGGER.warning("OnFilterTable Action is Called : " + filterQD);
  }
  </code></pre>
  
  <p>My table is based on view object. Can anyone tell me what i am doing wrong. My table simply just dont return search result, also gives no error. 
  If there is anyother better way to do this i am open for suggestions. Version of jdev is <code>11.1.1.7.0</code></p>