i am too trying to do the same thing using checkbox <s:checkboxlist list="#{0:'',1:'',2:''}" name="user" label="%{getText('com.upasana.type.'+toString())}"></s:checkboxlist>
but the key value is not passed to getText() if you come up with some way to achieve this please let us know thanks in advance On Tue, May 4, 2010 at 6:33 PM, RogerV <roger.var...@googlemail.com> wrote: > > > > Upasana Sharma wrote: > > > > listValue="%{getText('myCategory.'+toString())}" > > > > this way i can change the select display value from .properties file > > > > in .properties i have to use > > > > myCategory.ELECTRIC= Electric > > > > Neat. I'm trying to do the same thing with the <s:radio> tag. > > <s:radio list="allowedValues" listValues="%{getText()}/> > > the list allowedValues is a list of String values that need translating for > display. listValues is the correct > parameter to specify translation on because debug shows that getText() is > called for each entry > in the list. I just can't work out how to pass the value into the getText() > so it gets translated. > > Any pointers would be welcome. > > Regards > -- > View this message in context: > http://old.nabble.com/s%3Aselect-help-tp28443569p28447107.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 > > -- Thanks and Regards Upasana Sharma