Re: Re: How to extend StrutsMenu?
Matt Raible <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
Whatever problems you'd like to see fixed. ;-) I believe there might already be a bug for the missing DTD. Matt On Mar 24, 2005, at 2:40 AM, Ahmed Mohombe wrote: >> Sorry, this has been sitting in my inbox for awhile now. Can you >> please enter this as an enhancement request (or two) in Struts Menu? > Yes, of course, but for what problem? For the "body/div Id" problem or > for the "missing DTD" ? > > Ahmed. > >> http://sourceforge.net/tracker/?func=add&group_id=48726&atid=453974 >> Thanks, >> Matt >> On Feb 1, 2005, at 1:52 PM, Ahmed Mohombe wrote: >>>>> I would like to make this this for "velocity-nicetabs". >>>>> Has someone any hints or idea how/where to make the changes? >>>> >>>> Since you're using Velocity for your menu, you should be able to >>>> alter the template that you use for this menu. You could add a >>>> "name" attribute to the item and then use that in the "id" >>>> attribute of your link. >>> >>> Sorry, but "globalMacros.vm" looks in now way similar(for me) to >>> what's generated :( , so I have no idea where and how "name" would >>> fit in there. >>> The only place where it looks similar to the generated HTML is >>> "DisplayerStrings.properties". >>> Velocity was just an example. However It would be good to know a >>> general solution. I looked in "AbstractMenuDisplayer.java", but I >>> have no idea how the ID would come there. >>> It's embarrasing for me, but it seems I can't see the "big picture" >>> of how StrutsMenu works :(. >>> >>> There are a few usages of this extension to StrutsMenu: >>> - in a lot of cases an ID or other attributes are required by the >>> project requirements. >>> - Improved "menu activation": If the framework problem is solved, >>> it's a pice of cake to extend the javascripts to use the "body ID" >>> or a "DIV ID" in case an URL doesn't return the desired activation. >>> This way, a Body/Div Id can alwyas be set in the page(as a last >>> backup), to ensure that the right menu will be activated if the URL >>> doesn't match. I found a lot of situations where the URL doesn't >>> match and cookies don't play well with submenus, so this would be a >>> useful improvement for the StrutsMenu framework IMHO. >>> >>>>> P.S. Is there a DTD for the menu config.xml (to allow xml editors >>>>> to check for the right syntax, and autocomplete for smarter >>>>> editors :) ) ? >>>> >>>> No, not right now. A few folks have submitted some, but they were >>>> just generated from their editors. I do need to create one and >>>> hope to as part of the next release. >>> >>> Great :). I can't wait to use it in my IDE :). >>> Runtime errors are not very pleasent, so if IDEs can detect errors >>> while one is editing, it's a great productivity/test improvement. >>> >>> Ahmed. >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive >>> Reporting >>> Tool for open source databases. Create drag-&-drop reports. Save time >>> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, >>> etc. >>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>> _______________________________________________ >>> struts-menu-user mailing list >>> struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user >> ------------------------------------------------------- >> This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon >> 2005 >> Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest >> Windows >> Embedded(r) & Windows Mobile(tm) platforms, applications & content. >> Register >> by 3/29 & save $300 >> http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click > > > > ------------------------------------------------------- > This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon > 2005 > Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows > Embedded(r) & Windows Mobile(tm) platforms, applications & content. > Register > by 3/29 & save $300 > http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click > _______________________________________________ > struts-menu-user mailing list > struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/struts-menu-user ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click