Posted By:
Steve_Ayers
Posted On:
Thursday, June 15, 2006 07:21 AM
I am trying to make an AJAX request in the onClick event of an h:commandButton using JSF. The call is doing everything correctly and is coded as:
onclick="ajaxValidateUser()"
However, I also have an event in my backing bean bound to an actio attribute as:
action="{myBB.registerUser()}"
But if the ajax validation fails, I don't want the action event fired. How can I only fire the action event if the ajax validation succeeds?