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" />
    </put-list-attribute>
</definition>
...

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
application.
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">
         ${item.link} 
            <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
            </s:i18n>
         
    </td>
</c:forEach>

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.

Reply via email to