Documentation
JSFToolbox

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Developing Web Sites
  4. Using Components
  5. Internationalization
  6. Code View Support
  7. Design View Support
  8. Keyboard Shortcuts
  9. Tag Object Toolbars
  10. JSF Server Behaviors
  11. Property Inspectors
Selected 12. JSF Tag Reference

12. JSF Tag Reference

Contents > JSF Tag Reference > JSF HTML Tags

10. JSF HTML Tag Reference

Contents > JSF HTML Tag Reference > h:panelGroup

h:panelGroup

The panelGroup tag is a container component that renders its child components. It is intended to be used in situations where it is desirable to include several components but when only one child component is allowed, such as within a panelGrid column or a facet component.

The example below demonstrates the use of a panelGroup component to nest two components inside a single panelGrid column. Without the panelGroup component, the two child components of the panelGrid would have been rendered in separate rows.

Example:

<h:form id="form">
  <h:panelGrid id="grid" columns="1">
    <h:panelGroup>
      <h:inputText id="username" value="#{userBean.user.username}" required="#{true}" />
      <h:message for="username" />
    </h:panelGroup>
  </h:panelGrid>
</h:form>

HTML Output

<form id="form" name="form" method="post" ... >
<table id="grid">
  <tbody>
    <tr>
      <td><input id="username" name="username" type="text" value=""/> "username": Value is required.</td>
    </tr>
  </tbody>
</table>
</form>

Tag Attributes

binding String
 
The value-binding expression linking this component tag to a backing bean property.
id String
 
The unique identifier value for this component. The value must be unique within the closest naming container.
rendered String
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
style String
 
The style attribute sets the CSS style definition to be applied to this component when it is rendered.
styleClass String
 
The styleClass attribute sets the CSS class to apply to this component when it is rendered.