There's two ways to solve this as I see it:

1. Download the source from CVS and modify the CoolMenu4Displayer to
add the feature you're asking for.

2. Use the VelocityDisplayer and modify the template.

If you do #2, I'd still recommend getting the latest code from CVS as
I found some memory issues with the 2.3 version.  Regardless, you
should probably enter this as a bug in JIRA:
http://issues.appfuse.org/browse/SM.  If you can provide a patch,
that'd be great.

Matt

On 4/14/06, Pallavi Nagboth <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>   I have a problem with Struts-Menu. In our application, we have to display
> multiple menus on the same page. I tried using CoolMenu4. But looks like the
> CoolMenuDisplayer4.java is creating the same menu object for all the menus.
> When I view the source, I see the following:
>
> <!--
>     oCMenu.makeMenu('MainMenu','',Main
> Menu','','','','','','','','','','',0,'','','','');
>         oCMenu.makeMenu('menu0','MainMenu','Test
> Menu','','','','','','','','','','',0,'','','','');
>         oCMenu.makeMenu('menu00','menu0','Test
> Menu','/testMenu','','','','','','','','','',0,'','','','');
>             oCMenu.construct();
> //-->
> </script>
>
>
> <!--
>     oCMenu.makeMenu('testlibrary1','','Test
> Library1','/testList1.do','','','','','','','','','',0,'','','','');
>
>     oCMenu.makeMenu('testlibrary2','','Test
> Library2','/testList2.do?action=cleanList','','','','','','','','','',0,'','','','');
>
>     oCMenu.construct();
> //-->
> </script>
>
> It displays all the menus perfectly and the second menu (library menu) works
> fine. But the Main Menu is giving _javascript errors on onmouseover.
>
> CoolMenuDisplayer4 is hardcoding the ocMenu object. Is it possible for the
> tag to take the name of the object instead of harcoding it to oCMenu.
>
> private static MessageFormat menuMessage =
>         new MessageFormat(
>
> "oCMenu.makeMenu(''{0}'',''{1}'',''{2}'',''{3}'',''{4}'',''{5}'','''',"
> +
>
> "'''','''','''','''','''','''',0,''{6}'',''{7}'',''{8}'',''{9}'');");
> private static final String END_STATEMENT = TAB + "oCMenu.construct();\n";
>
> Can we have something like this:
>
> private static MessageFormat menuMessage =
>         new MessageFormat(
>            menuName+
> ".makeMenu(''{0}'',''{1}'',''{2}'',''{3}'',''{4}'',''{5}'','''',"
> +
>
> "'''','''','''','''','''','''',0,''{6}'',''{7}'',''{8}'',''{9}'');");
> private static final String END_STATEMENT = TAB + menuName+
> ".construct();\n";
>
> Can you suggest me how can I solve this problem.
>
> Thanks for your help,
>
>
> Pallavi
>
>
>  ________________________________
> Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2ยข/min
> with Yahoo! Messenger with Voice.
>
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
struts-menu-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to