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.10.3.  < rich:panel > available since 3.0.0

A skinnable panel that is rendered as a bordered rectangle with or without a header.


The "header" attribute defines text to be represented. If you can use the "header" facet, you can even not use the "header" attribute.

Example:


...
<rich:panel>
        <f:facet name="header">  
                <h:graphicImage value="/images/img1.png"/>
        </f:facet>
        ...
        <!--Any Content inside-->
        ...
</rich:panel>
...

<rich:panel> components are used to group page content pieces on similarly formatted rectangular panels.

Example:


...
<rich:panel>
        ...
</rich:panel>
...

It's generating on a page in the following way:


The example shows that similar rectangular areas are formed with a particular style.

When creating a panel with a header element, one more <div> element is added with content defined for a header.

Example:


...
<rich:panel>
        <f:facet name="header">
                <h:outputText value="Olympus EVOLT E-500 "/>
        </f:facet>
        ...
</rich:panel>
...

It's displayed on a page in the following way:


As it has been mentioned above, the component is mostly used for a page style definition, hence the main attributes are style ones.

  • "styleClass"

  • "headerClass"

  • "bodyClass"

Moreover, to add e.g. some JavaScript effects, events defined on it are used.

  • "onmouseover"

  • "onclick"

  • "onmouseout"

  • etc.

Table of <rich:panel> 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:panel> usage and sources for the given example.