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
It just requires the use of the ‘listener’ attribute instead: