You can set the array of children (submenu) of each NavigationMenuItem
using the method setNavigationMenuItems(NavigationMenuItem[]). Then you
can have all the submenus you want... submenus of submenus... untill the
infinite is reached :-P (or at least, until you run out of memory...).

Bruno




> Thanks Bruno. A further problem is that each league object has a few
> associated object, so they would be a submenu of each league.
> I wonder how to do this with the technik you descrbed.
>
> -----Original Message-----
> From: Bruno Aranda - Dev [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 24, 2004 11:24 AM
> To: [email protected]
> Subject: Re: jscookmenu probl.
>
> Hi Gabon,
>
> You should use the jscookMenu component and not a dataList. Your code
> should be, for example:
>
> <x:jscookMenu id="menuViewLeagues" layout="hbr" theme="ThemeOffice"  >
>    <x:navigationMenuItems value="#{bean.leagues}" />
> </x:jscookMenu>
>
> 'leagues' in your bean should be an array NavigationMenuItems. You set
> the
> label, action, icon... in your bean for each NavigationMenuItem in the
> array. And remember not to put your jscookMenu inside a form, because it
> will not work...
>
> Good luck,
>
> Bruno
>
>
> Gabor Beres wrote:
>
>>hi
>>
>>I'd like to populate jscookmenu programatically, but it not seems to
>>work.
>>Here is my try:
>>
>> <x:dataList var="league" value="#{bean.leagues}">
>>      <x:navigationMenuItem id="#{league.id}"
> itemLabel="#{league.name}"
>>action="go_sample1" icon="images/myfaces.gif" />
>> </x:dataList>
>>
>>any idea? thanks.
>
>
>
> ____________________________________________________________________
> Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a
> FreeStarttol.
> Probald ki most! http://www.freestart.hu
>


Reply via email to