O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: When true, only FacesMessage with no clientIds are displayed. Default value is false.
  • autoUpdate: This enables the autoupdate mode if set to TRUE. Default value is false.
  • for: This specifies the name of associated key, takes precedence when used with globalOnly.
  • closable: This adds a close icon to hide the messages.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required