Note that there are some explanatory texts on larger screens.

plurals
  1. POPrimeFaces commandButton & UIBlock
    primarykey
    data
    text
    <p>I have the following code inside a registration form. Basically the button calls an action (an Ejb method and an Action listener which is an utility method). When the user submits the registration form, a primefaces dialog should appear telling the user that registration is being processed. The same dialog disappears once the form is submitted. This can be achieved by <strong>Primefaces UIBlock</strong>; however, it requires the commandButton to be ajax enabled.</p> <p>I thought about using : onstart = display some modal dialog &amp; onsuccess or on complete = hide this dialog (<code>&lt;p:dialog widgetVar="dialog" ...</code>) but this solution requires ajax to be enabled for primefaces commandButton. </p> <p>Any clues on how I could achieve this while setting ajax to false inside a PrimeFaces commandButton? </p> <p>Thanks</p> <pre><code>&lt;h:form id="form_register"&gt; &lt;p:panel id="panel_register"&gt; &lt;div align="center" style="padding: 5px;"&gt; &lt;p:commandButton id="register" ajax="true" actionListener="#{mailBean.deliverEmail(newMember.email,newMember.name, newMember.username, newMember.password, newMember.isadmin)}" action="#{memberController.register}" value="Register" label="Register"&gt; &lt;f:setPropertyActionListener target="#{requestScope.wait}" value="#{true}" /&gt; &lt;/p:commandButton&gt; &lt;/div&gt; &lt;p:blockUI block="panel_register" trigger="register"&gt; &lt;h:outputText value="Please wait..." /&gt; &lt;br /&gt; &lt;p:graphicImage value="#{resource['gfx/gif.gif']}" /&gt; &lt;/p:blockUI&gt; </code></pre> <p><strong>EDIT: Thanks guys. I was mis-using the update the attribute in commandButton. Now things work fine.</strong></p>
    singulars
    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