arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
BlockUI
This example shows how to block the entire page. The entire page can be blocked if you don't define the "target" attribute.
Source

<p:commandButton value="Block this page!" action="#{blockUIController.doSomething}" update="@none"
                 onstart="PF('blockUIWidget').block()" oncomplete="PF('blockUIWidget').unblock()"/>

<pe:blockUI widgetVar="blockUIWidget" cssOverlay="{opacity:0.5}">
    <h:panelGrid columns="2">
        <h:graphicImage library="images" name="ajax-loader1.gif"
                        style="margin-right: 12px; vertical-align: middle;"/>
        <h:outputText value="Please wait..." style="white-space: nowrap;"/>
    </h:panelGrid>
</pe:blockUI>
            
Components and more
Documentation pe:blockUI
Attributes (move mouse over the names to see data types)
Name Description
autoShowWhen true, the block is shown automatically when source triggers.Default is false.
bindingAn EL expression referring to a server side UIComponent instance in a backing bean.Default is generated.
centerXWhether to center the block message horizontally.Default is true.
centerYWhether to center the block message vertically.Default is true.
contentSearch expression for the component whose markup is used as blocking content.
cssCSS to be applied to the blocking overlay.
cssOverlayCSS to be applied to the overlay element.
eventComma-separated list of event names that trigger the block. If empty, all events from source are accepted.
fadeInFade-in duration in milliseconds.Default is 200.
fadeOutFade-out duration in milliseconds.Default is 400.
focusInputWhether to focus the first input in the block content.Default is true.
idUnique identifier of the component in a namingContainer.Default is generated.
renderedBoolean value to specify the rendering of the component, when set to false component will not be rendered.Default is true.
showOverlayWhether to show the overlay.Default is true.
sourceSearch expression for the component(s) to block.Default is parent.
targetSearch expression for the element to use as the blocking container.
timeoutTimeout in milliseconds to automatically unblock. 0 means no timeout.Default is 0.
widgetVarName of the client side widget.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 16.0.0-SNAPSHOT,PrimeFaces Extensions: 16.0.0-SNAPSHOT,JSF: Apache MyFaces Core 4.0 - Impl 4.0.3,Server: Apache Tomcat (TomEE)/10.1.52 (10.1.4),Build time: 2026-03-15 21:21