blockui not triggering by the commandbutton or ajax having global=false

Community Driven Extensions Project
Post Reply
xdat
Posts: 1
Joined: 10 Nov 2014, 16:20

25 Jun 2020, 14:14

as described subject

<p:growl widgetVar="growlForm" id="growlForm" />
<h:form>

<p:panel id="pnl" header="New User" style="margin-bottom:10px;">
<p:messages id="messages" />
<h:panelGrid columns="3" cellpadding="5">
<h:outputLabel for="firstname" value="Firstname: *" />

</h:panelGrid>

<p:commandButton id="saveBtn" value="Save" icon="pi pi-check" global="false"
style="margin:0"
actionListener="#{declarationSearchPagerBean.doAra}" />
</p:panel>

<p:blockUI block="pnl" trigger="saveBtn" />
</h:form>

using primefaces7.0 on wildfly19 with java-8-oracle

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

25 Jun 2020, 14:54

This if the PF Extensions forum I think you want the PF forum for this post? viewforum.php?f=3
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

25 Jun 2020, 15:37

xdat that is expected behavior becuase if you look at the docs of the global flag:
https://primefaces.github.io/primefaces ... ying-users

Its exactly for that its when you don't want AJAX status Block UI when you want to silently run an AJAX query.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests