3 Replies Latest reply on Jul 13, 2009 6:07 AM by Ilya Shaikovsky

    ExtendedDataTable Filtering

    Themis Dakanalis Newbie


      I have used an ExtendedDataTable with filtering capabilities. I want to found a way to filter the rows every time a user types three characters and not e.g. onKeyUp. So, if the user types the characters Themistoklis I want the filtering to occur with the following character groups The, mis, tok, lis. Any idea??

      Thanks in advance!

        • 1. Re: ExtendedDataTable Filtering
          Ronald van Kuijk Master

          afaik, you can't do this witth the built-in filtering attributes. What works for me is using a filter method and do e.g. the following:

          <rich:column label="Businesskey" id="businesskey"
           sortBy="#{pi.key}" selfSorted="true"
           <f:facet name="header">
           <h:outputText value="Businesskey" />
           <f:facet name="filter">
           <h:inputText value="#{processinstances.keyFilter}" size="10">
           <a4j:support event="onkeyup" reRender="pit"
           ajaxSingle="true" requestDelay="500" />
           <h:outputText value="#{row.key1}" id="key1" />

          • 2. Re: ExtendedDataTable Filtering
            Themis Dakanalis Newbie

            Hi, and thanks for your reply,

            I tried to use the filterMethod but it does not work. Maybe the problem is that i have implemented a custom data model and I have to implement also some logic in order to handle the behavior of the filterMethod. What do you think about?

            • 3. Re: ExtendedDataTable Filtering
              Ilya Shaikovsky Master

              check demosite DataTable section. Modifiable model sample there. You seems need the same for your extended table model. you could checkout full demo sources from svn and look through.