CRANFORD, CHRIS wrote:
I'd try hacking the JavaScript and see what URL the menu is inspecting and what URLs are being generated (view-source has the same effect). The logic is all in the "activateMenu()" function. You could move this activation logic to the rendering of the menu, rather than putting it in JavaScript.No, it isn't doing thing.
I click on tab #1 and it gets highlighted and sends the user to
'<context>/welcome.do'. Then I select submenu item #1 and this sends the
user to '<context>/something.do'. When this action forward renders, I would
expect tab #1, sub menu #1 to remain highlighted, but they are not.
Our struts application uses tiles with a default layout. The default tilesYou could - the event handler for setting the cookies is in the initMenu() function. You could also just default to using cookies to setting the URL by removing the logic in activateMenu where it inspects URLs.
layout specifies a header and within the header.jsp, a tiles:insert is done
to insert the menu pane at the bottom of the company logo and other
authenticated user information.
Any ideas on what I could check? Could it be a cookie issue? Is there
anyway I could store the menu state in a session-based bean object or
something?
Matt
-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: [struts-menu] Menus
The parent tab should remain the same - is it not doing this? The selected tab is determined in tabs.js by matching the URL and if that doesn't work it uses a cookie that's set when you click on the link. You could manipulate the logic for submenu items so that the cookie is the one referring to the parent tab.
Matt
On Oct 28, 2004, at 6:12 AM, CRANFORD, CHRIS wrote:
I have implemented the tabbed menu option in my struts application;
howeverI am noticing that when a user selects a sub-menu item that the selected item & tab reset. Any ideas on how I could force the tab & selected submenu item to remain selected when a user navigates to a submenu page?
_______________________________________________________
Chris Cranford
Programmer/Developer
SETECH Inc. & Companies
6302 Fairview Rd, Suite 201
Charlotte, NC 28210
Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042
Email: [EMAIL PROTECTED]
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user
