Hi,
I have dialog box with some input filed. This field marked as required. when i submit the dialog box using p:commandButton
So if i submit the dialog and close it via oncomplete the error message which is within the dialog is not displayed. How can i do it?
Dialog with field validation
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
you don't need to clear it then the user clicks cancel, but you can update the message-component before opening. e.g.:
or
Code: Select all
<p:commandButton update="dialogForm:messages" oncomplete="dialog.show();" value="Open" />
Code: Select all
<p:commandButton update="dialogForm" oncomplete="dialog.show();" value="Open" />
-
- Information
-
Who is online
Users browsing this forum: No registered users and 45 guests