Your you create NavigationMenuItem and you add NavigationMenuItem submenu with another one NavigationMenuItem I I put those of menu father in a list and works menuGenericoXML.olistmenuitem . I give back jsp a list of
<t:jscookMenu id="nav1"
layout="hbr"
theme="ThemeOffice" binding="#{gestionProyectosBean.nombre_proyecto}" >
<t:navigationMenuItems id="navitems" value="#menuGenericoXML.olistmenuitem}"/>
</t:jscookMenu>
layout="hbr"
theme="ThemeOffice" binding="#{gestionProyectosBean.nombre_proyecto}" >
<t:navigationMenuItems id="navitems" value="#menuGenericoXML.olistmenuitem}"/>
</t:jscookMenu>
this
works
Alexandre Jaquet <[EMAIL PROTECTED]> escribió:
Hi,
I would like to know how to add dynamically a sub menu like :
file
file1
file1_1
file1_2
file2
Currently I use this way :
NavigationMenuItem tools =
getMenuNaviagtionItem(UtilGui.getTranslationText("common_tools"), null);
tools.add(new
NavigationMenuItem(UtilGui.getTranslationText("tools_index"),
"goIndex","./images/myfaces.gif",true));
tools.add(new
NavigationMenuItem(UtilGui.getTranslationText("tools_password"),
"goPassword","./images/myfaces.gif",true));
tools.add(new
NavigationMenuItem(UtilGui.getTranslationText("tools_properties"),
"goProperties","./images/myfaces.gif",true));
menu.add(tools);
thx in advance :)
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

