-
1. Re: How to attach actionListener for events in Richfaces 4
ppitonak Nov 2, 2011 8:50 AM (in response to langer123)Hi Thomas,
you can use attribute listener of a4j:ajax:
<h:inputText id="transamount" value="#{myBean.amount}"> <a4j:ajax event="keyup" render="main,submitButton" listener="#{myBean.validTransAmt}"/> </h:inputText>
Be aware of the fact that event attribute consumes the name of event itself, i.e. without "on" and attribute reRender was renamed so that it is the same as in f:ajax.
Your listener then will look like this:
public void validTransAmt(javax.faces.event.AjaxBehaviorEvent event) { // implementation }
Regards,
Palo
-
2. Re: How to attach actionListener for events in Richfaces 4
langer123 Nov 2, 2011 12:23 PM (in response to ppitonak)Thanks Pavol
Just one other quick question.
What about the use of ajaxSingle and requestDelay? They dont seem to be avbailable for a4j:ajax either?
-
3. Re: How to attach actionListener for events in Richfaces 4
ppitonak Nov 2, 2011 1:09 PM (in response to langer123)1 of 1 people found this helpfulAttribute ajaxSingle was removed from RichFaces 4. You can use execute="@this" instead. You have to use a4j:attachQueue behavior instead of attribute requestDelay, please see component reference [1].
IMHO you should have a look on our Migration guide [2] which explains all changes.
[2] http://community.jboss.org/wiki/RichFacesMigrationGuide33x-4xMigration