primefaces validation multiple dialog

Posted: June 1, 2012 in web
		<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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s