[
http://issues.apache.org/jira/browse/MYFACES-588?page=comments#action_12330460
]
Keijo Nurmes commented on MYFACES-588:
--------------------------------------
Auts! This fix has nasty side effects.
All menuitems (and childItems) where split=true disappear.
So either this patch should be reverted or one must check the emptiness of an
item before skipping it.
In simple example (jscookmenu.jsp) navicationMenuitem is used like this (below)
The Components menu disappears with this fix.
------cut-----------------------
<t:navigationMenuItem id="nav_2_4"
itemLabel="#{example_messages['nav_Components']}"
icon="images/component.gif" split="true">
<t:navigationMenuItem id="nav_2_4_1"
itemLabel="#{example_messages['nav_sortTable']}"
action="go_sortTable" icon="images/myfaces.gif" />
<t:navigationMenuItem id="nav_2_4_2"
itemLabel="#{example_messages['nav_Selectbox']}"
action="go_selectbox" icon="images/myfaces.gif" />
<t:navigationMenuItem id="nav_2_4_3"
itemLabel="#{example_messages['nav_FileUpload']}"
action="go_fileupload" icon="images/myfaces.gif" />
<t:navigationMenuItem id="nav_2_4_4"
itemLabel="#{example_messages['nav_TabbedPane']}"
action="go_tabbedPane" icon="images/myfaces.gif" />
<t:navigationMenuItem id="nav_2_4_5"
itemLabel="#{example_messages['nav_Calendar']}"
action="go_calendar" icon="images/myfaces.gif" split="true" />
.
.
.
</t:navigationMenuItem>
------cut-------------------------
> JSCookMenu separator bug - phantom item
> ---------------------------------------
>
> Key: MYFACES-588
> URL: http://issues.apache.org/jira/browse/MYFACES-588
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: Nightly Build
> Environment: tomcat 5.0, jdk1.4.2_09, jbuilder 2005, winxp, intel p4
> Reporter: Zoltán Baranyi
> Priority: Trivial
> Fix For: Nightly Build
>
> These tag lines
> <t:jscookMenu layout="hbr" theme="ThemeOffice">
> <t:navigationMenuItem itemLabel="Menu1" itemValue="Menu1" value="Menu1">
> <t:navigationMenuItem itemLabel="Menu1-1" itemValue="Menu1-1"
> value="Menu1-1"> </t:navigationMenuItem>
> <t:navigationMenuItem split="true"> </t:navigationMenuItem>
> <t:navigationMenuItem itemLabel="Menu1-2" itemValue="Menu1-2"
> value="Menu1-2"> </t:navigationMenuItem>
> </t:navigationMenuItem>
> </t:jscookMenu>
> produces this output
> var id2_menu =
> [
> [null, 'Menu1', null, 'linkDummyForm', null,
> [null, 'Menu1-1', null, 'linkDummyForm', null],
> _cmSplit,
> [null, '0', null, 'linkDummyForm', null],
> [null, 'Menu1-2', null, 'linkDummyForm', null]
> ]
> ];
> So the split item was rendered twice: the separator item, and a "phantom"
> item.
--
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