<section role="NotInToc" id="rich_menuGroup">
   <title>
				&lt;
				rich:menuGroup
				&gt;
				<emphasis role="since">
         <superscript> available since <emphasis role="version">3.0.0</emphasis>
         </superscript>
      </emphasis>
   </title>
   <section>
      <title>Description</title>
        <para>The <emphasis role="bold">
            <property>&lt;rich:menuGroup&gt;</property>
         </emphasis> component is used to define an expandable group of items inside a pop-up list or another group.</para>
      <figure>
        <title>
            <emphasis role="bold">
               <property>&lt;rich:menuGroup&gt;</property>
            </emphasis> component</title> 
         <mediaobject>
             <imageobject>
                <imagedata fileref="images/menuGroup_init.png"/> 
            </imageobject>
        </mediaobject>
      </figure>
   </section>
   <section>
      <title>Key Features</title>
      <itemizedlist>
        <listitem>
            <para>Highly customizable look-and-feel</para>
         </listitem>
        <listitem>
            <para>Grouping of any menu's items</para>
         </listitem>
        <listitem>
            <para>Pop-up appearance event customization</para>
         </listitem>
        <listitem>
            <para>Support for disabling</para>
         </listitem>
        <listitem>
            <para>Smart user-defined positioning</para>
         </listitem>
     </itemizedlist>
      
   </section>
   <section>
        <title>Details of Usage</title>
        <para> The <emphasis>
                <property>"value"</property>
            </emphasis> attribute defines the text representation of a group element in the page. </para>
        <para> The <emphasis>
                <property>"icon"</property>
            </emphasis> attribute defines an icon for the component. The <emphasis>
                <property>"iconDisabled"</property>
            </emphasis> attribute defines an icon for when the group is disabled. Also you can use
            the <emphasis>
                <property>"icon"</property>
            </emphasis> and <emphasis>
                <property>"iconDisabled"</property>
            </emphasis> facets. If the facets are defined, the corresponding <emphasis>
                <property>"icon"</property>
            </emphasis> and <emphasis>
                <property>"iconDisabled"</property>
            </emphasis> attributes are ignored and the facets' contents are used as icons.
            This could be used for an item check box implementation. </para>
        <para> Here is an example: </para>
        <programlisting role="XML"><![CDATA[...
<f:facet name="icon">
		<h:selectBooleanCheckbox value="#{bean.property}"/>
</f:facet>
...
]]></programlisting>
        <para> The <emphasis>
                <property>"iconFolder"</property>
            </emphasis> and <emphasis>
                <property>"iconFolderDisabled"</property>
            </emphasis> attributes are defined for using icons as folder icons. The <emphasis>
                <property>"iconFolder"</property>
            </emphasis> and <emphasis>
                <property>"iconFolderDisabled"</property>
            </emphasis> facets use their contents as folder icon representations in place of the
            attribute values. </para>
        <para> The <emphasis>
                <property>"direction"</property>
            </emphasis> attribute is used to define which way to display the menu as shown in the
            example below: </para>
        <para>Possible values are:</para>
        <itemizedlist>
            <listitem>
                <para>"left - down" - a submenu is attached to the left side of the menu and is
                    dropping down</para>
            </listitem>
            <listitem>
                <para>"left - up" - a submenu is attached to the left side of the menu and is dropping
                    up</para>
            </listitem>
            <listitem>
                <para>"right - down" - a submenu is attached to the right side of the menu and is
                    dropping down</para>
            </listitem>
            <listitem>
                <para>"right - up" - a submenu is attached to the right side of the menu and is
                    dropping up</para>
            </listitem>
            <listitem>
                <para>"auto - smart" positioning activation</para>
            </listitem>
        </itemizedlist>
        <para> By default, the <emphasis>
                <property>"direction"</property>
            </emphasis> attribute is set to "auto". </para>
        <para> Here is an example: </para>
        <programlisting role="XML"><![CDATA[...
<rich:menuGroup value="Save As..." direction="left-down">
		<rich:menuItem   submitMode="ajax" value="Text File"  action="#{ddmenu.doSaveText}"/>
      	<rich:menuItem   submitMode="ajax" value="PDF File"  action="#{ddmenu.doSavePDF}"/>
</rich:menuGroup>
...
]]></programlisting>
        <para> This would be the result: </para>
        <figure>
            <title>Using the <emphasis>
               <property>"direction"</property>
            </emphasis> attribute</title>
            <mediaobject>
                <imageobject>
                    <imagedata fileref="images/menuGroup2.png"/>
                </imageobject>
            </mediaobject>
        </figure>
        <note>
         <title>Note:</title>
         <para> The <emphasis role="bold">
               <property>&lt;rich:menuGroup&gt;</property>
            </emphasis> component was designed to be used only for pop-up menu list creation.</para>
      </note>
    </section>
   <section>
      <title>Reference Data</title>
      <para>
         <ulink url="&tlddoc;rich/menuGroup.html">Table of 
							&lt;rich:menuGroup&gt; 
							 attributes</ulink>.
						</para>
      <table>
        <title>Component Identification Parameters</title>
        <tgroup cols="2">
            <thead>
                <row>
                    <entry>Name</entry>
                    <entry>Value</entry>
                </row>
            </thead>
            <tbody>
                <row>
                    <entry>component-type</entry>
                    <entry>org.richfaces.MenuGroup</entry>
                </row>
                <row>
                    <entry>component-class</entry>
                    <entry>org.richfaces.component.html.HtmlMenuGroup</entry>
                </row>
                <row>
                    <entry>component-family</entry>
                    <entry>org.richfaces.DropDownMenu</entry>
                </row>
                <row>
                    <entry>renderer-type</entry>
                    <entry>org.richfaces.MenuGroupRenderer</entry>
                </row>
                <row>
                    <entry>tag-class</entry>
                    <entry>org.richfaces.taglib.MenuGroupTag</entry>
                </row>
            </tbody>
        </tgroup>
      </table>
      <table>
            <title>Facets</title>
            <tgroup cols="2">
                <thead>
                    <row>
                        <entry>Facet</entry>
                        <entry>Description</entry>
                    </row>
                </thead>
                <tbody>
                    <row>
                        <entry>icon</entry>
                        <entry>Redefines the icon for the enabled item state. Related attribute is "icon"</entry>
                    </row>
                    <row>
                        <entry>iconFolder</entry>
                        <entry>Redefines the folder icon for the enabled item state. Related attribute is "iconFolder"</entry>
                    </row>
                </tbody>
            </tgroup>
        </table>
      <table id="tab_mG">
            <title>Classes names that define an appearance of group elements</title>
            <tgroup cols="2">
                <thead>
                    <row>
                        <entry>Class name</entry>
                        <entry>Description</entry>
                    </row>
                </thead>
                <tbody>
                    <row>
                        <entry>rich-menu-group</entry>
                        <entry>Defines styles for a wrapper &lt;div&gt; element for a group</entry>
                    </row>
                    <row>
                        <entry>rich-menu-item-label</entry>
                        <entry>Defines styles for a label of an item</entry>
                    </row>
                    <row>
                        <entry>rich-menu-item-icon</entry>
                        <entry>Defines styles for the left icon of an item</entry>
                    </row>
                    <row>
                        <entry>rich-menu-item-folder</entry>
                        <entry>Defines styles for the right icon of an item</entry>
                    </row>
                </tbody>
            </tgroup>
        </table>
      <table>
            <title>Classes names that define different states</title>
            <tgroup cols="2">
                <thead>
                    <row>
                        <entry>Class name</entry>
                        <entry>Description</entry>
                    </row>
                </thead>
                <tbody>
                    <row>
                        <entry>rich-menu-item-label-disabled</entry>
                        <entry>Defines styles for a label of a disabled item</entry>
                    </row>
                    <row>
                        <entry>rich-menu-item-icon-disabled</entry>
                        <entry>Defines styles for the left icon of a disabled item</entry>
                    </row>
                    <row>
                        <entry>rich-menu-item-folder-disabled</entry>
                        <entry>Defines styles for the right icon of a disabled item</entry>
                    </row>
                    <row>
                        <entry>rich-menu-group-hover</entry>
                        <entry>Defines styles for a wrapper &lt;div&gt; element of a hover group</entry>
                    </row>
                    <row>
                        <entry>rich-menu-item-icon-enabled</entry>
                        <entry>Defines styles for the left icon of an enabled item</entry>
                    </row>
                    <row>
                        <entry>rich-menu-item-icon-selected</entry>
                        <entry>Defines styles for the left icon of a selected item</entry>
                    </row>
                </tbody>
            </tgroup>
        </table>
							You can find all necessary information about style classes redefinition in 
						<link linkend="customstyles">Definition of Custom Style Classes</link> 
							section.
						</section>
   <section>
        <title>Relevant Resources Links</title>
        <para>
         <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf?c=menuGroup">On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold">
            <property>&lt;rich:menuGroup&gt;</property>
         </emphasis> usage and sources for the given example. </para>
    </section>
</section>