Create new RichFaces Documentation Jira issue

This will launch the RichFaces Jira page - to complete your feedback please login if needed, and submit the Jira.

JBoss.orgCommunity Documentation

6.10.7.  <rich:panelMenuGroup> available since 3.1.0

The <rich:panelMenuGroup> defines an expandable group of <rich:panelMenuItem> components inside the <rich:panelMenu>.


All attributes except "label" are optional. The "label" attribute defines text to be represented.

Switching mode could be chosen with the"expandMode" attribute for the concrete panelMenu group. The "expandMode" attribute could be used with three possible parameters:

"Action" and "actionListener" attributes are ignored. Items don't fire any submits itself. Behavior is fully defined by the components nested into items.

There are three icon-related attributes. The "iconExpanded" attribute defines an icon for an expanded state. The "iconCollapsed" attribute defines an icon for a collapsed state. The "iconDisabled" attribute defines an icon for a disabled state. Default icons are shown on the picture below:


Here is an example:


...
<rich:panelMenu>
        <rich:panelMenuGroup label="Group1" iconExpanded="disc" iconCollapsed="chevron">
                <!--Nested panelMenu components-->
        </rich:panelMenuGroup>
</rich:panelMenu>
...

As the result the pictures are shown below. The first one represents the collapsed state, the second one - expanded state:



It's also possible to define a path to the icon. Simple code is placed below.


...
<rich:panelMenu>
        <rich:panelMenuGroup label="Group1" iconExpanded="\images\img1.png" iconCollapsed="\images\img2.png">
                    <!--Nested menu components-->
        </rich:panelMenuGroup>
</rich:panelMenu>
...

Information about the "process" attribute usage you can find "Decide what to process" guide section.

Table of <rich:panelMenuGroup> attributes.





You can find all necessary information about style classes redefinition in Definition of Custom Style Classes section.

Visit panelMenuGroup page at RichFaces LiveDemo for examples of component usage and their sources..

If you have any questions or ideas regarding the <rich:panelMenuGroup> tell about them at the RichFaces Users Forum.