1 Reply Latest reply on Dec 24, 2008 5:36 AM by Ilya Shaikovsky

    rich:column filter

    Nagendra krishnawat Newbie

      I am using richfaces datatable and my aim is to write a custom filter methods on each column:
      Here is the code:

      <rich:column filterBy="#{account.name}" filterEvent="onkeyup" filterValue="#{clientPortfolioHome.myName}" filterMethod="#{clientPortfolioHome.getFilteredValue}" >
       <f:facet name="header">
       <h:outputText value="#{messages['label.account.name']}"/>
       <h:outputText id="portfolioName" value="#{account.name}"/>

      Here is the Java code:

      String myName;
       public String getMyName() {
       return myName;
       public void setMyName(String myName) {
       this.myName = myName;
       public int getMandateId() {
       return mandateId;
       public void setMandateId(int mandateId) {
       this.mandateId = mandateId;
       public boolean getFilteredValue(Object object){
       ClientPortfolio clientPortfolio = (ClientPortfolio)object;
       return clientPortfolio.getName().equalsIgnoreCase(this.myName);
       }else {
       return true;

      When I add the filterMethod="#{clientPortfolioHome.getFilteredValue}" attribute in rich:column the filter text box disappears.
      I am not able to comprehend why the filtermethod doesnt work.
      Am I missing something.
      Kindly suggest.