- Components
- PanelGroup
PanelGroup
Extension of the panelGroup element
In addition to the normal rendered
attribute, there is also a show
attribute that has the same semantics, but instead of entirely
omitting the element in the markup, show=false
will render an empty placeholder element.
This is especially neat for the cases where you would normally need to add an outer wrapper to AJAX update a conditionally rendered element.
The panelGroup will render as a div
by default, but you can render it as any tag name by specifiying the tag
attribute.
Example
Documentation
<t:panelGroup id="mypanel" show="#{controller.show}">
<h3>This is the content of the panel</h3>
</t:panelGroup>
<t:commandButton value="Show" action="#{controller.setShow(true)}" render="mypanel"/>
Extension of the panelGroup element
Info
Tag name | panelGroup |
---|---|
Component type | io.tornadofaces.component.PanelGroup |
Renderer type | io.tornadofaces.component.PanelGroupRenderer |
Attributes
Name | Description | Required |
---|---|---|
styleClass | Classes to apply to the element | false |
style | CSS Style attribute | false |
tag | Tag name to render as. Defaults to div. | false |
show | Show this component normally, or render an empty placeholder element. Defaults to true. | false |
rendered | Should this component be rendered? | false |