This content has been marked as final.
Show 2 replies
-
1. Re: Pop up validation with checkbox while editing the data
mcmurdosound Nov 6, 2011 1:20 PM (in response to raj_richfaces)seems like the content of your modal panel isn't rerendered after the next click on the a4j:commandButton. I never rerender the modal panel itself or the h:form definied inside the modal panel.
in RF 3.3.x I use the following approach:
<rich:modalPanel id="mp">
<h:form id="myform">
<a4j:outputPanel id="mypanel">
....
your content
</a4j:outputPanel>
<a4j:commandButton value="close".../>
<a4j:commandButton value="save".../>
</rich:modalPanel>
to open the panel:
<a4j:commanButton value="open" action="#{mybean.myaction} reRender="myform:mypanel" oncomplete="#{rich:component('mp')}.show();" />
Maybe you have to reset the form data, too. This could be the issue here. Validation fails from prevs. missing input. Therefore no rerendering is done.