<section role="NotInToc" id="rich_message">
   <title>
         &lt;rich:message&gt; <emphasis role="since"><superscript> available since <emphasis role="version">3.1.0</emphasis></superscript></emphasis>
   </title>
      
   <section>
        <title>Description</title>
        <para>The component is used for rendering a single message for a specific component. </para>
        <figure>
            <title>
            <emphasis role="bold">
               <property>&lt;rich:message&gt;</property>
            </emphasis> component</title>
            <mediaobject>
                <imageobject>
                    <imagedata fileref="images/message_init.png"/>
                </imageobject>
            </mediaobject>
        </figure>
   </section>
      
      <section>
            <title>Key Features</title>
            <itemizedlist>
                  <listitem>
                        <para>Consists of two parts to be defined optionally: marker (pictogram) and label (text message)</para>
                  </listitem>
                  <listitem>
                        <para>Provides set of facets for marker customization</para>
                  </listitem>
                  <listitem>
                        <para>Supports tooltip to display extra portion of message</para>
                  </listitem>
                  <listitem>
                        <para>Tracks both traditional and Ajax requests</para>
                  </listitem>
                  <listitem>
                        <para>Customizable look and feel </para>
                  </listitem>
            </itemizedlist>
      </section>
      
      <section>
      <title>Details of Usage</title>
      <para>
            The component has the same behavior as standard <emphasis role="bold"><property>&lt;h:message&gt;</property></emphasis> component. 
            Besides some extra features:
            <itemizedlist>
                  <listitem>
                        <para>auto rerendering after Ajax request without help of <emphasis role="bold"><property>&lt;a4j:outputPanel&gt;</property></emphasis>;</para>
                  </listitem>
                  <listitem>
                        <para>providing <code>passed</code> message after validation has been passed (optional);</para>
            </listitem>
            <listitem>
                  <para>possibility to add marker to a message;</para>
            </listitem>
                  <listitem>
                        <para>set of predefined CSS classes for customizing messages appearance.</para>
                  </listitem>   
         </itemizedlist>
      </para>
      <para>
            The <emphasis role="bold"><property>&lt;rich:message&gt;</property></emphasis> appears on page after form is submitted. 
            Even for &quot;passed&quot; state.
            The <emphasis><property>&quot;passedLabel&quot;</property></emphasis> attribute is used for definition of the label when validation is passed.
            Boolean attribute<emphasis><property> "showSummary" </property></emphasis>defines possibility to display summary portion of displayed messages.
      </para>

            <programlisting role="XML"><![CDATA[<rich:message for="id" passedLabel="No errors" showSummary="true">
      <f:facet name="errorMarker">
            <h:graphicImage url="/image/error.png"/>
      </f:facet>
      <f:facet name="passedMarker">
            <h:graphicImage url="/image/passed.png"/>
      </f:facet>  	
</rich:message>]]></programlisting>

  </section>
   
      <section>
            <title>Reference Data</title>
            <para>
                  <ulink url="&tlddoc;rich/message.html">Table of &lt;rich:message&gt; attributes</ulink>.
            </para>
            
            <table>
                  <title>Component Identification Parameters </title>
                  <tgroup cols="2">
                        <thead>
                              <row>
                                    <entry>Name</entry>
                                    <entry>Value</entry>
                              </row>
                        </thead>
                        <tbody>
                              <row>
                                    <entry>component-type</entry>
                                    <entry>org.richfaces.component.RichMessage</entry>
                              </row>
                              <row>
                                    <entry>component-class</entry>
                                    <entry>org.richfaces.component.html.HtmlRichMessage</entry>
                              </row>
                              <row>
                                    <entry>component-family</entry>
                                    <entry>org.richfaces.component.RichMessage</entry>
                              </row>
                              <row>
                                    <entry>renderer-type</entry>
                                    <entry>org.richfaces.RichMessageRenderer</entry>
                              </row>
                              <row>
                                    <entry>tag-class</entry>
                                    <entry>org.richfaces.taglib.RichMessageTag</entry>
                              </row>
                        </tbody>
                  </tgroup>
            </table>
           
            <table>
         
            <title>Facets</title>
            <tgroup cols="2">
                  <thead>
                        <row>
                              <entry>Facet</entry>
                              <entry>Description</entry>
                        </row>
                  </thead>
                  <tbody>
                        <row>
                              <entry>errorMarker</entry>
                              <entry>Defines pictogram for message with <emphasis>error</emphasis> severity class</entry>
                        </row>
                        <row> 
                              <entry>fatalMarker</entry>
                              <entry>Defines pictogram for message with <emphasis>fatal</emphasis> severity class</entry>
                        </row>
                        <row>
                              <entry>infoMarker</entry>
                              <entry>Defines pictogram for message with <emphasis>info</emphasis> severity class</entry>
                        </row>
                        <row>
                              <entry>passedMarker</entry>
                              <entry>Defines pictogram if there is no <emphasis>fatal</emphasis>, <emphasis>error</emphasis>, <emphasis>warn</emphasis> or <emphasis>info</emphasis> message</entry>
                        </row>
                        <row>
                              <entry>warnMarker</entry>
                              <entry>Defines pictogram for message with <emphasis>warn</emphasis> severity class</entry>
                        </row>
                  </tbody>
            </tgroup>
      </table>
         
         
         
      <table id="mC">
            <title>Classes names that define a component appearance</title>
            <tgroup cols="2">
                  <thead>
                        <row>
                              <entry>Class name</entry>
                              <entry>Description</entry>
                        </row>
                  </thead>
                  <tbody>
                        <row>
                              <entry>rich-message</entry>
                              <entry>Defines styles for a wrapper element</entry>
                        </row>
                        <row>
                              <entry>rich-message-marker</entry>
                              <entry>Defines styles for a marker</entry>
                        </row>
                        <row>
                              <entry>rich-message-label</entry>
                              <entry>Defines styles for a label</entry>
                        </row>
                  </tbody>
            </tgroup>
      </table>
            
            <para>You can find all necessary information about style classes redefinition in <link linkend="customstyles">Definition of Custom Style Classes</link> section.</para>
      </section>
      
   <section>
      <title>Relevant Resources Links</title>
      <para>
            Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/message.jsf?c=message">Message page</ulink> at RichFaces LiveDemo for examples of component usage and their sources.
      </para>
  </section>
</section>