Try this: <s:select labelposition="left" key="category" id="category" list="%{categories}" listKey="id" listValue="%{getText(name)}" emptyOption="true"/>
2009/11/12 Ignacio de Córdoba <icord...@skios.es> > > Hello, > I wonder if it is possible to make s:select tag localize the content of > option elements. I am using: > > <s:select labelposition="left" key="category" id="category" > list="%{categories}" listKey="id" listValue="name" emptyOption="true"/> > > I'd like attribute listValue="name" property value if the objects iterated > not to be shown "as is" but to be used as a key to the language property > files... just like the "key" attribute value ("category" in this example) > is > localized. > > ¿Is it possible or I must pre-populate the list with already localized > strings? > > Thanks, > Ignacio > -- > View this message in context: > http://old.nabble.com/Localized-key-values-in-s%3Aselect-tp26323814p26323814.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >