1 Reply Latest reply on Nov 26, 2010 5:09 AM by Ilya Shaikovsky

    Table filtering:filterMethod attribute on richColumn not firing action method

    vinay bn Newbie

       

      Hi ,

      I want to use table filtering feature in my application.Below is the code that i tried.

       

       

       

      <h:richColumn id="userLogin" filterMethod="#{samplePageBean.filterValues}">

       

      <f:facet name="header">

       

      <a:jsfOutputLabel value="#{text['UserID']}"/>

       

      <h:inputText value="#{samplePageBean.filterValue}" id="input">

       

      <a4j:support id="filterEvent" event="onkeyup" reRender="consoleList,scroll"

       

      ignoreDupResponses="true" requestDelay="700"/>

       

      </h:inputText>

       

      </f:facet>

       

      <a:jsfOutputTextInTable value="#{loggedUser.userLogin}"/>

       

      </a:richColumn>

       

       

       

       

      public

      boolean filterMethod(Object userLogin) {

           LoggedInUsers currentUser = (LoggedInUsers)userLogin;

       

                if (filterValue.length()==0) {

                      return true;

                }

       

                if (currentUser.getUserLogin().toLowerCase().startsWith(filterValue.toLowerCase())) {

                      return true;

                }

                else {

                      return false;

                }

      }

       

       

       

      Method that is binded to the filterMethod attribute of richColumn is not getting fired on entering some value in the input text.

       

      rich faces 3.3.2.SR1 jars am using.

       

      any help would be appreciated.

       

      Thanks in advance

      Vinay