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.


<t:panelGroup id="mypanel" show="#{}">
    <h3>This is the content of the panel</h3>

<t:commandButton value="Show" action="#{controller.setShow(true)}" render="mypanel"/>

Extension of the panelGroup element

Tag name panelGroup
Component type io.tornadofaces.component.PanelGroup
Renderer type io.tornadofaces.component.PanelGroupRenderer
styleClassClasses to apply to the elementfalse
styleCSS Style attributefalse
tagTag name to render as. Defaults to div.false
showShow this component normally, or render an empty placeholder element. Defaults to true.false
renderedShould this component be rendered?false