Hi Martin,

I was up to the same problem several months ago.  To my opinion, there is no
simple way to do it without modifying the current design.  I asked the
authors to confirm but got no reply...

I am in a process of working on the modified version. Trying to utilize
Strategy and Decorator patterns to get a general solution.  The idea is to
factor out Struts dependency into a decorator class.  For possible security
restrictions I can't rely on pure Java Script solution, so I use 'Simple
Displayer' variant so far.  Selected items are passed via request or
session.  I also use a default selected item.

Another good example you can review in Roller Weblogger project.  They have
a different menu model, but it is pretty flexible and uses selected items.

Alex Greysukh
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Martin
Naskovski
Sent: Tuesday, May 27, 2003 8:52 PM
To: [EMAIL PROTECTED]
Subject: [MVC-Programmers] struts-menu question


Hi all - I'm hoping this is a simple question - we use the struts-menu tag
library to do our menuing system.  I've adapted the SimpleMenuDisplayer to
give us our layout of the menu - however, I have a slight issue (rather
than a problem) -

I wish to be able to change the 'class' (style) of a <td> that a menu item
is located in, when that item is selected. This way I can denote to the
user where he is in the program by highlighting the menu option he clicked
on.

I'm not sure if there's an easy way to do it, I looked in the source
code... it sort of escapes me how it could be done.  Has someone here done
something similar with struts-menu?

Thanks.
Martin

_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers

_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers

Reply via email to