apex:panelGroup

A container for multiple child components so that they can be displayed in a single panelGrid cell. An <apex:panelGroup> must be a child component of an <apex:panelGrid>.

Example 

1<apex:page>
2    <apex:panelGrid columns="3" id="theGrid">
3        <apex:outputText value="First" id="theFirst"/>
4        <apex:outputText value="Second" id="theSecond"/>
5        <apex:panelGroup id="theGroup">
6            <apex:outputText value="Third" id="theThird"/>
7            <apex:outputText value="Fourth" id="theFourth"/>
8        </apex:panelGroup>
9    </apex:panelGrid>
10</apex:page>

The example above renders the following HTML:

1<table id="theGrid">
2    <tbody>
3        <tr>
4            <td><span id="theFirst">First</span></td>
5            <td><span id="theSecond">Second</span></td>
6            <td><span id="theGroup">
7                    <span id="theThird">Third</span>
8                    <span id="theFourth">Fourth</span>
9                </span></td>
10        </tr>
11    </tbody>
12</table>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
idStringAn identifier that allows the panelGrid component to be referenced by other components in the page. 10.0global
layoutStringThe layout style for the panel group. Possible values include “block” (which generates an HTML div tag), “inline” (which generates an HTML span tag), and “none” (which does not generate an HTML tag). If not specified, this value defaults to “inline”. 10.0global
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 10.0global
styleStringThe style used to display the panelGroup component, used primarily for adding inline CSS styles. 10.0global
styleClassStringThe style class used to display the panelGroup component, used primarily to designate which CSS styles are applied when using an external CSS stylesheet. 10.0global

See Also