title: display growl when page is loaded primefaces jsf2
body: <p>I have this commandButton : </p>
  
  <pre><code>    &lt;p:commandButton value="Enregistrer" action="#{reglementClientMB.ajouter}" 
              process="@this @form" update="@form" &gt;
              &lt;f:setPropertyActionListener target="#{reglementClientMB.est_ajouter}" value="false" /&gt;
              &lt;/p:commandButton&gt;
  </code></pre>
  
  <p>the action method return to another page , I want to display one <code>p:growl</code> when the next page is loaded</p>
  
  <p>I tested to put that is the constructor of its managed bean but the growl is displayed below data in the page </p>
  
  <pre><code>FacesContext.getCurrentInstance().addMessage(
                          null,
                          new FacesMessage(FacesMessage.SEVERITY_INFO, ""
                                  + "Confirmation", "Réglement crée avec sucée"));
  
                  RequestContext.getCurrentInstance().update("messages");
  </code></pre>
  
  <p>how can I achieve this</p>
  
  <p>thank you in advance</p>