0 Replies Latest reply on Apr 29, 2011 3:19 PM by Michal Huniewicz

    rich:table filtering on keypress

    Michal Huniewicz Newbie

      Hi there,


      I'm running the example from here: http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=dataTable&sample=tableFiltering&skin=ruby


      It works but I don't like the fact that the filtering for text input fields occurs on blur. I'd like it to occur on keypress/keydown. But if I do that


      <rich:column filterValue="#{dogsFilteringBean.nameFilter}"
                          <f:facet name="header">
                                  <h:outputText value="#{msg['index.table.column.name']}" />
                                  <h:inputText value="#{dogsFilteringBean.nameFilter}">
                                      <a4j:ajax event="keydown" render="table" execute="@this" />
                          <h:outputText value="#{dog.name}" />

      it behaves in a strange way (it loses focus and restores the session stored value for the filter). Is there a way around this? Thanks.