Chapter 11. Panels
This chapter details those components which act as panels and containers to hold groups of other components.
11.1. <rich:panel>
The
<rich:panel> component is a bordered panel with an optional header.
11.1.1. Basic usage
No attributes need to be listed for basic usage. a
<rich:panel> without any attributes defined renders a bordered region with no header.
11.1.2. Adding a header
To add a header to the panel, use the
header attribute to specify the text to appear in the header. Alternatively the header can be constructed using a header facet. Example 11.1, “Adding a header” demonstrates the two different approaches.
Example 11.1. Adding a header
<rich:panel header="This is the panel header"> <h:outputText value="This is the panel content" /> </rich:panel>
<rich:panel> <f:facet name="header"> <h:outputText value="This is the panel header"> </f:facet> <h:outputText value="This is the panel content" /> </rich:panel>
Both the examples render an identical panel.
11.1.3. Reference data
component-type:org.richfaces.Panelcomponent-class:org.richfaces.component.UIPanelcomponent-family:org.richfaces.Panelrenderer-type:org.richfaces.PanelRenderer
11.1.4. Style classes and skin parameters
Table 11.1. Style classes (selectors) and corresponding skin parameters
| Class (selector) | Skin Parameters | Mapped CSS properties |
|---|---|---|
| generalBackgroundColor
|
background-color
|
panelBorderColor
|
color
| |
| headerBackgroundColor
|
background-color, border-color
|
headerTextColor
|
color
| |
headerSizeFont
|
font-size
| |
headerWeightFont
|
font-weight
| |
headerFamilyFont
|
font-family
| |
| generalTextColor
|
color
|
generalSizeFont
|
font-size
| |
generalFamilyFont
|
font-family
|

