You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Bosak (JIRA)" <my...@incubator.apache.org> on 2005/04/21 05:32:26 UTC
[jira] Updated: (MYFACES-196) JSCookMenu Children Menus Problem
[ http://issues.apache.org/jira/browse/MYFACES-196?page=all ]
Martin Bosak updated MYFACES-196:
---------------------------------
Attachment: myfaces-196.diff
Attached is a patch to fix this.
I also re-worked the code to eliminate generating an ArrayIndexOutOfBounds Exception. (It's more efficient to avoid the creation of unnecessary Exceptions if possible).
> JSCookMenu Children Menus Problem
> ---------------------------------
>
> Key: MYFACES-196
> URL: http://issues.apache.org/jira/browse/MYFACES-196
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: MyFaces 1.0.9, Windows XP SP1, Tomcat 5.5
> Reporter: Rogerio Saulo
> Priority: Critical
> Attachments: myfaces-196.diff
>
> I have upgraded to MyFaces 1.0.9 (Was in the 1.0.7) and the JSCookMenu dos not work anymore.
> My children menus does not appear on the menu, I have installed the MyFacesExamples and the last menu "Info" does not work too. Only the top level menus appear.
>
> Here is My code :
>
> JSP :
>
> <x:jscookMenu layout="hbr" theme="ThemeIE" >
> <x:navigationMenuItems id="menus" value="#{menuBean.menus}" />
> </x:jscookMenu>
> MenuBean :
> public String getMenus() {
> NavigationMenuItem menu[] = new NavigationMenuItem[1];
> menu[0] = new NavigationMenuItem("Rogerio", null, null, true);
> NavigationMenuItem items[] = new NavigationMenuItem[2];
> menu[0].setNavigationMenuItems(items);
> items[0] = new NavigationMenuItem("Rogerio Filho 1", "go_contact", null, false);
> items[1] = new NavigationMenuItem("Rogerio Filho 2", "go_copyright", null, false);
> return menu;
> }
> Rogerio
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira