Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable the entire screen during ajax request

Tags:

primefaces

So when you create a dialog with primefaces it disables all of the page in the background. Is there a good way to do that without the dialog box?

Basically I want to disable the whole page during a specific ajax request.

like image 413
Landister Avatar asked Nov 18 '25 20:11

Landister


1 Answers

Yup its called BlockUI ,

BlockUI

<p:panel id="pnl" header="My Panel">
    //content
    <p:commandButton id="saveBtn" value="Save" />
</p:panel>
<p:blockUI block="pnl" trigger="saveBtn" />

also , take a look at the user guide at the BlockUI section...

like image 125
Daniel Avatar answered Nov 20 '25 13:11

Daniel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!