arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
BlockUI
BlockUI component allows to block any piece(s) of page during various Ajax calls. Blocking is initiated by a "source" component which blocks one or more "target" components. BlockUI adds a layer and any custom content over target elements to be blocked and gives the appearance and behavior of blocking user interaction. It's very handy if you have e.g. a large datatable and sorting, filtering, pagination takes much time. You can block everything, even the entire page, but keep im mind that some HTML elements as table or span can not be blocked. The best approach is to wrap them in a div (h:panelGroup with layout="block").

There are two methods how to use BlockUI. The first one utilizes widget's JavaScript API. This method is shown in the first use case. The second one utilizes jQuery global ajax callbacks. This method hooks into ajax calls automatically, so that there are no needs to call block() / unblock() explicitly. This is so-called "autoShow" mode which is demonstrated in the second use case. Keep in mind please that some PrimeFaces components and p:ajax have the "global" attribute. Setting "global" to false will not trigger BlockUI in "autoShow" mode.

BlockUI is smart enough to recognize multiply blocking of the same element by different ajax calls. Only when all ajax calls finish their work, the blocked element gets unblocked.
Components and more
Documentation pe:
Attributes (move mouse over the names to see data types)
Name Description
No attributes available for this component.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 15.0.13,PrimeFaces Extensions: 15.0.14-SNAPSHOT,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: Apache Tomcat (TomEE)/9.0.82 (8.0.16),Build time: 2026-02-23 00:32