Project Documentation

Summary

Tag name: <t:panelStack>
UIComponent class: org.apache.myfaces.custom.panelstack.HtmlPanelStack
Tag class: org.apache.myfaces.custom.panelstack.PanelStackTag
Component type: org.apache.myfaces.HtmlPanelStack
Component family: javax.faces.Panel
Renderer type: org.apache.myfaces.PanelStack
Renderer class: org.apache.myfaces.custom.panelstack.HtmlPanelStackRenderer

A stack of panels, to switch panels dynamically. Manage a stack of JSF components and allow for one child component to be choosen for rendering. The behaviour is similar to the CardLayout of Java Swing. Property selectedPanel defines the id of the child to be rendered. If no child panel is selected or if the selected panel can not be found the first child is rendered. Unless otherwise specified, all attributes accept static values or EL expressions.

Usage

<t:panelStack id="String"
                 selectedPanel="String">

Instructions

see examples/panelStack.jsp for an example!

Attributes

Name Type Supports EL? Description
binding org.apache.myfaces.custom.panelstack.HtmlPanelStack Only EL Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind " + "to this component instance. This value must be an EL expression.
id String Yes Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.
selectedPanel String Yes