|
The ice:menuBar tag provides a robust menu system that supports:
1. Nested child menuItem and menuItemSeparator components. Support for menuItemCheckbox and menuItemRadio components are planned for a future release.
2. Horizontal (default) and Vertical menu orientations. Defines whether the submenus of the top-level menu items appear beside or below the top-level menu items.
3. Definition of the heirarchy of menu items and their submenus in one of two ways:
* by using a reference to a bean method that returns a (potentially) dynamic heirarchy of menu items
* by statically defining the heirarchy in the JSPX page
4. The action attribute of the contained menuItem tags or instances can be defined to indicate a string or a backing bean method that can be used in application navigation.
5. The actionListener attribute of the contained menuItem tags or instances can be defined to indicate an actionListener that resides in a backing bean.
Example
<ice:menuBar value="hello" styleClass="foo" orientation="vertical">
<ice:menuItem value="Hello" styleClass="bar">
<ice:menuItem value="Bar" />
</ice:menuItem>
<ice:menuItem value="One" />
<ice:menuItem value="Two" />
<ice:menuItem value="Three" />
</ice:menuBar>
Rendered Output
|