Note that there are some explanatory texts on larger screens.

plurals
  1. POShowing messages in the same growl
    primarykey
    data
    text
    <p>How can I show all validation messages in one pop up using growl, because by default every validation message on the client side creates new pop up.</p> <p>Of course I could do validation on the server side and send final message to the growl but is it possible to do it on the client side?</p> <p>Some code goes here:</p> <pre><code>&lt;p:dialog id="chPwD" header="#{res['user.passwordDialogHeader']}" widgetVar="changePwV" closeOnEscape="true" resizable="false"&gt; &lt;p:growl id="growl" showDetail="false" life="3000" /&gt; &lt;h:panelGrid id="chPwPG" columns="1" cellpadding="1" transient="true"&gt; &lt;h:panelGrid id="chPwPGi" columns="2" cellpadding="1"&gt; &lt;p:outputLabel for="pwd0" value="#{res['user.oldPassword']}" /&gt; &lt;h:panelGroup&gt; &lt;p:password id="pwd0" label="#{res['user.oldPassword']}" value="#{mngr.oldPassword}" required="true" style="width:250px;"/&gt; &lt;span style="display:inline-block;"&gt;&lt;p:message for="pwd0"/&gt;&lt;p:messages for="pwd0"/&gt;&lt;/span&gt; &lt;/h:panelGroup&gt; &lt;p:outputLabel for="pwd1" value="#{res['user.newPassword']}" /&gt; &lt;h:panelGroup&gt; &lt;p:password id="pwd1" label="#{res['user.newPassword']}" value="#{mngr.newPassword}" match="pwd2" required="true" style="width:250px;"/&gt; &lt;span style="display:inline-block;"&gt;&lt;p:message for="pwd1"/&gt;&lt;/span&gt; &lt;/h:panelGroup&gt; &lt;p:outputLabel for="pwd2" value="#{res['user.repeatNewPassword']}" /&gt; &lt;h:panelGroup&gt; &lt;p:password id="pwd2" label="#{res['user.repeatNewPassword']}" value="#{mngr.newPassword}" required="true" style="width:250px;"/&gt; &lt;span style="display:inline-block;"&gt;&lt;p:message for="pwd2"/&gt;&lt;/span&gt; &lt;/h:panelGroup&gt; &lt;/h:panelGrid&gt; &lt;/h:panelGrid&gt; &lt;f:facet name="footer"&gt; &lt;p:commandButton value="#{res['btn.apply']}" style="margin-right:20px;" update=":chPwPG" action="#{mngr.changeSelectedUserPassword}" oncomplete="handlePwChangeRequest(xhr, status, args)"/&gt; &lt;p:commandButton value="#{res['btn.cancel']}" onclick="changePwV.hide();" type="button"/&gt; &lt;/f:facet&gt; &lt;/p:dialog&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload