3 Replies Latest reply on Nov 2, 2011 1:09 PM by Pavol Pitonak

    How to attach actionListener for events in Richfaces 4

    Thomas Buckley Newbie

      I have the follwoing code from Richfaces 3.3

       

      <h:inputText id="transamount" value="#{myBean.amount}">
          <a4j:support event="onkeyup" ajaxSingle="true" actionListener="#{myBean.validTransAmt}" requestDelay="200" ignoreDupResponses="true" reRender="main,submitButton" />
      </h:inputText>
      

       

      I need to upgrade it to Richfaces 4 and am unsure how to attach the actionListener now as it's not supported under the a4j:ajax component which replaces a4j:support.

       

       

      This is what I have so far.

       

      <h:inputText id="transamount" value="#{myBean.amount}">
          <a4j:ajax event="onkeyup" reRender="main,submitButton" />
      </h:inputText>
      

       

      Could someone explain how to attach an actionListener here?

       

      Thanks