I'd like to fix this, but it's tough to do if I can't reproduce it. Another option is to use the Velocity Displayer with tabs and use some other logic to set the classes of the menu at build time, rather than after the fact with JavaScript.
Matt
On Sep 13, 2004, at 11:27 AM, Nortje, Andrew wrote:
After doing more testing the problem only occurs when I select the single menu which has sub menus. For the rest it works fine.
�
Seems the sub menu selection logic is causing the problem.
�
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nortje, Andrew
Sent: Monday, September 13, 2004 12:56 PM
To: '[EMAIL PROTECTED]'
Subject: [struts-menu] Tabbed Menu Help
�
All
�
I have just started using Struts Menu - looks very neat. I am using Tabbed menus with menu config listed below. It generally works fine but the selected menu is not always shown properly selected. Sometimes I have to click a menu twice before it's shown as selected.
�
My url's do have parameters but checking the javascript, as suggested in one email in the archives, it seems this should not be a problem. The javascript uses the indexOf() method to check the URL. I assume javascript indexOf() works the same as the java String indexOf() method i.e. exact match not required as long as the sub string is found in the String.
�
I am using:
1. Struts Menu 1.2 - latest release
2. Struts 1.2
3. IE
4. WebLogic
�
I checked through the archives and see that other folks have had similar problems. Any ideas?
�
TIA
�
Andrew
�
��� <Menus>
������� <Menu name="TabbedUser" title="User" action="/userAdmin.do?action=listUsers"/>
������� <Menu name="TabbedIA" title="Input Approve" page="/inputApprovalHome.jsp"/>
������� <Menu name="TabbedYERO" title="YERO"> <!-- No location, uses first item"s location (People) -->
����������� <Item name="Last Year" title="Last Year" action="/YERO/YEROLastYearAction.do?"/>
����������� <Item name="Target" title="Target" action="/yero.do"/>
������� </Menu>
� ������<Menu name="TabbedDataAdmin" title="Data Admin" page="/dataAdminHome.jsp"/>
��� </Menus>
�
�
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user
