i need your help!
in my application i have some dialogs.. my problem is that the messages aren't shown because i have the attribute oncomplete="dialog.hide()"
but.. how can i check if all inputs are valid???
the dialog also hides when there should be shown a message..
here is my dialog:
Code: Select all
<p:dialog id="dialog" header="Dialog"
widgetVar="dialog" modal="true" draggable="false" closable="false"
resizable="false" width="400" height="400">
<h:form>
<h:panelGrid columns="1" cellpadding="5">
<p:fieldset legend="Allgemein">
<h:outputLabel for="name" value="Name:" />
<h:inputText id="name" value="#{bean.name}" required="true" />
</p:fieldset>
<p:messages></p:messages>
<p:commandButton value="Add" action="#{bean.action}" oncomplete="dialog.hide()" />
</h:panelGrid>
</h:form>
</p:dialog>
please. i need your help!
thank you very much!