tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From papinu <pla...@strategyobject.com>
Subject Tiles items list i18n
Date Fri, 13 Feb 2009 14:00:07 GMT

I have following in tiles-defs.xml:
<definition name="tiles.tabs.foouser" extends="tiles.tabs">
    <put-list-attribute name="tabs">
	<item value="TAB_ACTION1" link="action1.action" />
        <item value="TAB_ACTION2" link="action2.action" />
        <item value="TAB_ACTION3" link="action3.action" />
        <item value="TAB_ACTION4" link="action4.action" />
        <item value="TAB_ACTION5" link="action5.action" />

Where values in 'item' element are keys in my tiles.properties file. This I
use to localize (internationalize) the tabs and menues in my Struts 2
I have a troubles how to obtain a values for corresponding locale in jsp,
something like this:

<c:forEach var="item" items="${tabs}">
    <td class="maintab_back" valign="top">
	    <s:i18n name="com.so.was.tiles.resources.tiles" >
		<s:text name="${item.value}" /> //of course this not work, it is to
illustrate the problem

Please, help!
View this message in context: http://www.nabble.com/Tiles-items-list-i18n-tp21996903p21996903.html
Sent from the tiles users mailing list archive at Nabble.com.

View raw message