Re: s:select help

2010-05-05 Thread Upasana Sharma
i am too trying to do the same thing using checkbox 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 wrote: > > > > Upasana Sharma wrote: > > > > listValue="%{getText('myCat

Re: s:select help

2010-05-04 Thread Alex Rodriguez Lopez
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: li

Re: s:select help

2010-05-04 Thread RogerV
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 tag. http://old.nabble.c

Re: s:select help

2010-05-04 Thread Upasana Sharma
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 On Tue, May 4, 2010 at 12:24 PM, Upasana Sharma wrote: > I have also seen that there is some function called ordina

Re: s:select help

2010-05-03 Thread Upasana Sharma
I have also seen that there is some function called ordinal() in enum. can anyone suggest how can i use it in s:select tag On Tue, May 4, 2010 at 12:01 PM, Upasana Sharma wrote: > Hi I am using s:select and populating it with enum . > > > the enum is like > > public enum EComplaintType { >

s:select help

2010-05-03 Thread Upasana Sharma
Hi I am using s:select and populating it with enum . the enum is like public enum EComplaintType { CLUB_HOUSE(0), ELECTRIC(1); } In the jsp the select is formed as CLUB_HOUSE ELECTRIC Here both the key and value for the select are the same as the Name i have given in enum EComp