Create new RichFaces Documentation Jira issue

This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.

JBoss.orgCommunity Documentation

6.14.8.  < rich:messages > available since 3.1.0

The <rich:messages> component is similar to <rich:message> component but used for rendering all messages for the components.


The <rich:messages> component is considered as JSF HTML <h:messages> , extended with following features:

There are two optional parts that could be defined for every message: marker and text label. The set of facets, which can be used for a marker definition, is shown below:


The following example shows different variants of customization of the component.

Example:


<rich:messages layout="table" tooltip="true" showDetail="false" showSummary="true">
      <f:facet name="errorMarker">
            <h:graphicImage url="/image/error.png"/>
      </f:facet>
      <f:facet name="infoMarker">
            <h:graphicImage url="/image/info.png"/>
      </f:facet>
 </rich:messages>

The <rich:messages> component keeps all messages for all components even after only one Ajax-validated component was updated.

Table of <rich:messages> attributes.




You can find all necessary information about style classes redefinition in
Definition of Custom Style Classes section.

On the component LiveDemo page you can see the example of <rich:messages> usage and sources for the given example.