Im using richfaces3.3.3 final and jsf1.2,
I use a modal panel as popup which conatins 3 fields
I want to hide the popup once operation is completed successfully.
If any validations(required=true,validator exceptions) error occured. The popup should not close.
Presently im using oncomplete attribute, so the popup is closing even when error is happened
Do we have any 'onerror' attribute or is there any way to find that an exception is occured for that submit operation.
Thanks in advice
Hi,
there is no onerror but you can do this:
<a4j:commandButton data="#{bean.validationSuccessful}" oncomplete="if(data)#{rich:component('panel')}.hide();" … />
checking for exceptions is something you'll have to do yourself.