I don't see any attributes in tiles-config.dtd that allow message keys. This would probably be a useful enhancement though. Feel free to enter an enhancement request (unless it turns out it's already supported).

David



From: Dan Allen <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: i18n in SimpleMenuItem
Date: Fri, 28 Feb 2003 21:03:36 -0600

Has anyone written a class (which they would like to share) that
extends SimpleMenuItem to retrieve the bundle key for value and
global forward for the link?

I was envisioning something along the lines of:

<item name="webapp.page.news" value="news"
classname="org.apache.struts.titles.bean.SmartMenuItem"/>

I am not even interested in the global forward as much as the
bean:message bundle resource.

Also, while I am on the topic of tiles.  Is there any way to use the
<bean:message key="webapp.title"/> in the tiles definition file?  I
know that you can have different definition files for different
languages, but it would seem to be more logical to be able to
reference the application message bundle instead.  It would seem to
me a new "type" of message would be the most approrpriate if it is
not already possible to do this.

I would be grateful for any responses to those two inquires.

Dan

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I'm old enough to know better, but still too young to care."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to