Hi, have a look at this page [1] in the myfaces wiki.
Regards,
Bruno
[1] http://wiki.apache.org/myfaces/Dynamic_Menus_with_JSCookMenu
On 7/24/06, Alexandre Jaquet <[EMAIL PROTECTED]> wrote:
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 :)