AW: parameter regClass
"Otto, Frank" <[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks, I will test it. -----Ursprüngliche Nachricht----- Von: Matt Raible [mailto:lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]] Gesendet: Freitag, 2. April 2004 08:51 An: struts-menu-user-TtF/[email protected] Betreff: RE: [struts-menu] parameter regClass If you just need to change it for the first level of items - change this value: oCMenu.level[0].regClass="cmMenu" If you need to change it on an individual basis - you will have to modify the source code of Struts Menu. For adding the attribute in menu-config.xml - just add a property+getter/setter to MenuBase.java. The extra/passthru attributes don't exist either - you'd have to add those the same way. Matt -----Original Message----- From: struts-menu-user-admin-TtF/[email protected] [mailto:struts-menu-user-admin-TtF/[email protected]] On Behalf Of Otto, Frank Sent: Thursday, April 01, 2004 11:35 PM To: 'struts-menu-user-TtF/[email protected]' Subject: AW: [struts-menu] parameter regClass Thanks for your answer. I need it different styles of the top menu item. So I will set the regClass for every item. If I use the regClass attribute in menu-config.xml, must I changed the source of struts menu? How can I use an "extra" or "passthru" attribute? Do you have an example? Frank -----Ursprüngliche Nachricht----- Von: Matt Raible [mailto:lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]] Gesendet: Freitag, 2. April 2004 08:28 An: struts-menu-user-TtF/[email protected] Betreff: RE: [struts-menu] parameter regClass You can specify it in the coolmenu4-config.js file - the sample app has this specified for the different levels. If that doesn't work for you, then no, it's not supported. To support it, I'd have to add a custom "regClass" attribute to the menu-config.xml, and that doesn't seem right for only one displayer. Another option is to add an "extra" or "passthru" attribute that passes whatever you type in to the rendered menu. Matt -----Original Message----- From: struts-menu-user-admin-TtF/[email protected] [mailto:struts-menu-user-admin-TtF/[email protected]] On Behalf Of Otto, Frank Sent: Thursday, April 01, 2004 11:20 PM To: 'struts-menu-user-TtF/[email protected]' Subject: [struts-menu] parameter regClass Hi, ist the parameter regClass of function makeMenu supported by struts menu? Regards, Frank