To be perfectly honest, I'm not sure if this is possible. You could
try downloading the source and see if it works. I'd eventually like
to add a DTD and this might break that - but you could certainly add
it now. If it works - maybe we'll skip the DTD. ;-)
Matt
On 2/1/06, Tim Morrow 2 (sent by Nabble.com) <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'd like to be able to add a custom attribute to a Menu or Item element in
> the XML to make it available to a velocity template for rendering the menu.
> Is this possible? It seems that the menu-config xml can be parsed, but
> there is no way to access the added attribute.
>
> I saw a previous post on editing the source for MenuBase to add a
> setter/getter for that new attribute. As an alternative to that I was
> thinking that if MenuBase implemented Map and all attributes were available
> via get() then I could access custom attributes in velocity via
> ${menu.myAttr}. Is this even possible with the XML parser, or do I need
> to add each custom attribute as a getter/setter.
>
> Any hints would be appreciated,
>
> Thanks,
>
> Tim
>
> ________________________________
> View this message in context: Custom attributes in menu-config.xml
> Sent from the struts-menu-user forum at Nabble.com.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
struts-menu-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user