title: How to attach actionListener for events in Richfaces 4
body: <p>I have the follwoing code from Richfaces 3.3</p>
  
  <pre><code>&lt;h:inputText id="transamount" value="#{myBean.amount}"&gt;
      &lt;a4j:support event="onkeyup" ajaxSingle="true" actionListener="#{myBean.validTransAmt}" requestDelay="200" ignoreDupResponses="true" reRender="main,submitButton" /&gt;
  &lt;/h:inputText&gt;
  </code></pre>
  
  <p>I need to upgrade it to Richfaces 4 and am unsure how to attach the <strong>actionListener</strong> now as it's not supported under the <strong>a4j:ajax</strong> component which replaces a4j:support.</p>
  
  <p>This is what I have so far.</p>
  
  <pre><code>&lt;h:inputText id="transamount" value="#{myBean.amount}"&gt;
      &lt;a4j:ajax event="onkeyup" reRender="main,submitButton" /&gt;
  &lt;/h:inputText&gt;
  </code></pre>
  
  <p>Could someone explain how to attach an actionListener here?</p>
  
  <p>Thanks</p>