JBoss.orgCommunity Documentation
A skinnable panel that is rendered as a bordered rectangle with or without a header.
Highly customizable look and feel
Support for any content inside
Header adding feature
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.
Table 6.112. Component Identification Parameters
Name | Value |
---|---|
component-type | org.richfaces.panel |
component-class | org.richfaces.component.html.HtmlPanel |
component-family | org.richfaces.panel |
renderer-type | org.richfaces.PanelRenderer |
tag-class | org.richfaces.taglib.PanelTag |
Table 6.114. Classes names that define a component appearance
Class name | Class description |
---|---|
rich-panel | Defines styles for a wrapper <div> element of a component |
rich-panel-header | Defines styles for a header element |
rich-panel-body | Defines styles for a body element |
On the component LiveDemo page you can see the example of <rich:panel> usage and sources for the given example.