Hello,
I have modalPanel which contains form submiting by a4j:commandButton.
I want close this modalPanel on success form submiting it means without errors.
When I use
<a4j:commandButton oncomplete="closeModalWIndow()"/>
its not work corretly because close window even when are validation errors.
How to resolve this problem
Best regards
Mirek
Hi,
something like this will work:
oncomplete="if (#{facesContext.maximumSeverity.ordinal == null}) #{rich:component('myModalWindow')}.hide();"
Craig