Introducing the Messages component
The Messages component <p:messages>
is an enhanced version of the standard JSF <h:messages>
component with skinning capabilities. The <p:messages>
component can be used to display multiple messages corresponding to UI elements.
The <p:messages/>
component supports the following additional attributes in addition to the attributes supported by <p:message>
:
globalOnly
: Whentrue
, onlyFacesMessage
with no clientIds are displayed. Default value isfalse
.autoUpdate
: This enables the autoupdate mode if set toTRUE
. Default value isfalse
.for
: This specifies the name of associated key, takes precedence when used withglobalOnly
.closable
: This adds a close icon to hide the messages.