Search code examples
jsfjsf-2primefacesglobalcommandbutton

What does <p:commandButton global="false"> attribute do?


What is difference between when setting the global attribute of <p:commandButton> to false or setting it to true. I was going through the primefaces showcase but couldn't understand the difference.


Solution

  • Form the Primefaces TLD:

    Defines whether to trigger ajaxStatus or not.

    If global is true and you defined ajaxStatus on your page, then the status is shown if you click the button.