struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Rodriguez Lopez <alo...@flordeutopia.pt>
Subject Re: s:select help
Date Tue, 04 May 2010 13:28:02 GMT
Maybe using OGNL along with #this or #attr . Haven't checked that out 
but it should work some of these ways:

http://struts.apache.org/2.0.14/docs/ognl-basics.html
http://www.opensymphony.com/ognl/html/LanguageGuide/varref.html

Em 04-05-2010 14:03, RogerV escreveu:
>
>
>
> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message