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="">

        <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="">

            <Item name="Target" title="Target" action="">

        </Menu>

        <Menu name="TabbedDataAdmin" title="Data Admin" page="/dataAdminHome.jsp"/>

    </Menus>

 

 

Reply via email to