This content has been marked as final.
Show 2 replies
-
1. Re: Ajax form validation on a modal w-o modal dismissing?
rhare Nov 30, 2009 11:52 AM (in response to eriks62)Did you ever find out how to do the validation without dismissing the modal popup?
-
2. Re: Ajax form validation on a modal w-o modal dismissing?
damianharvey.damianharvey.gmail.com Nov 30, 2009 2:03 PM (in response to eriks62)This approach will close the modal if there are info or warning messages but leave it open if there are errors.
<a:commandButton value="Update" action="#{someBean.update}" data="#{facesContext.maximumSeverity.ordinal gt 1}" oncomplete="if(typeof data == 'undefined' || data == null || data == false) { Richfaces.hideModalPanel('myModalId') }"/>