You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Alexandre Jaquet <a....@avintis.com> on 2006/07/24 10:59:45 UTC

jscookmenu submenu

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 :)

Re: jscookmenu submenu

Posted by Alexandre Jaquet <a....@avintis.com>.
Here is my cover :

NavigationMenuItem datas = 
getMenuNaviagtionItem(UtilGui.getTranslationText("menu_datas"), null);
datas.add(new 
NavigationMenuItem(UtilGui.getTranslationText("menu_datas_market"), 
"test1","./images/myfaces.gif",true));
datas.add(new 
NavigationMenuItem(UtilGui.getTranslationText("menu_datas_sales_forces"), 
"test1","./images/myfaces.gif",true));
 //sales force
 NavigationMenuItem saleforce_menu = new 
NavigationMenuItem(UtilGui.getTranslationText("menu_datas_product_product"), 
"test1","./images/myfaces.gif",true);
 saleforce_menu.add(new 
NavigationMenuItem(UtilGui.getTranslationText("menu_datas_sales_forces_zone"), 
"test1","./images/myfaces.gif",true));
 saleforce_menu.add(new 
NavigationMenuItem(UtilGui.getTranslationText("menu_datas_sales_forces_agent_category"), 
"test1","./images/myfaces.gif",true));       
 datas.add (saleforce_menu);


Alexandre Jaquet wrote:
> This sample doesn't cover my needs I need to have a menu with this 
> structure :
>
> FILE
> FILE1
>   FILE1_1
>   FILE1_2
> FILE2
>
> Alexandre Jaquet wrote:
>> Geat thanks for the link :)
>>
>> Bruno Aranda wrote:
>>> 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 <a....@avintis.com> 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 :)
>>>>
>>>
>>
>>
>
>


Re: jscookmenu submenu

Posted by Alexandre Jaquet <a....@avintis.com>.
This sample doesn't cover my needs I need to have a menu with this 
structure :

FILE
 FILE1
   FILE1_1
   FILE1_2
 FILE2

Alexandre Jaquet wrote:
> Geat thanks for the link :)
>
> Bruno Aranda wrote:
>> 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 <a....@avintis.com> 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 :)
>>>
>>
>
>


Re: jscookmenu submenu

Posted by Alexandre Jaquet <a....@avintis.com>.
Geat thanks for the link :)

Bruno Aranda wrote:
> 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 <a....@avintis.com> 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 :)
>>
>


Re: jscookmenu submenu

Posted by Bruno Aranda <br...@gmail.com>.
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 <a....@avintis.com> 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 :)
>

RE: jscookmenu submenu

Posted by Alberto Marquÿffffe9s <al...@yahoo.es>.
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> 
    this works



Alexandre Jaquet <a....@avintis.com> 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