<h:form id="em3"> <p:button value="emas" onclick="emas.show()" /> <p:button value="emas2" onclick="emas2.show()" /> </h:form> <p:dialog widgetVar="emas" modal="true"> <h:form id="em1"> <p:messages id="memas" /> <ui:include src="modify-form.xhtml" /> <p:commandButton update="memas" process="em1" value="sdf" /> </h:form> </p:dialog> <p:dialog widgetVar="emas2" modal="true"> <h:form id="em2"> <p:messages id="memas2" /> <ui:include src="modify-form.xhtml" /> <p:commandButton update="memas2" value="sdf" process="em2" /> </h:form> </p:dialog>
Each dialog will need to process its own form process=”em1″ and update its own message element update=”memas” for dialog one.
Advertisements