Re: preselect value for radio tag

2009-07-10 Thread Bhaarat Sharma
ah HAA thats was my problem. the datatypes were different. Thanks On Fri, Jul 10, 2009 at 12:37 PM, Dale Newfield wrote: > Bhaarat Sharma wrote: > >> I have a very simple radio tag like following >> > list=" #{'1':'1','2':'2','3':'3','4':'4'}" >> value="questionVo.correctAnswer"/> >> >> questio

Re: preselect value for radio tag

2009-07-10 Thread Dale Newfield
Bhaarat Sharma wrote: I have a very simple radio tag like following questionVo.correctAnswer returns 2. So I want the second radio button to be preselected but it is not happening. I even tried: but that does not work either. what am I doing wrong? http://struts.apache.org/2.1.6/docs/why-

RE: preselect

2007-12-12 Thread Jake Robb
What about using s:checkboxlist with a single-item list? -Jake -Original Message- From: bhaarat Sharma [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 4:36 PM To: Struts Users Mailing List Subject: Re: preselect tried it and doesnt work :( this is a real drawback that

Re: preselect

2007-12-12 Thread bhaarat Sharma
tried it and doesnt work :( this is a real drawback that struts2 allows only true or false to come from checkboxes On 12/12/07, Jason Deffenbaugh <[EMAIL PROTECTED]> wrote: Try this: > > fieldValue=\\\"something\\\" value=\"checkboxField1\"/> > > I\'m not sure that will work. > > -J > > On Wed,

Re: preselect

2007-12-12 Thread Jason Deffenbaugh
Try this: I'm not sure that will work. -J On Wed, 2007-12-12 at 16:15 -0500, bhaarat Sharma wrote: > but in my action class i am doing a lot of stuff based on the > \'value\' of the checkbox. > > is there no way to do this other than making fieldValue a boolean value!?! > > If I do that I wi

Re: preselect

2007-12-12 Thread bhaarat Sharma
but in my action class i am doing a lot of stuff based on the \'value\' of the checkbox. is there no way to do this other than making fieldValue a boolean value!?! If I do that I will have to change a lot of stuff in my action class. Also, this isnt mentioned in the documentation for checkbox. :

Re: preselect

2007-12-12 Thread Johannes Geppert
try to use boolean and not String for checkboxes. Bye jogep > my getters and setters: > public String getCheckboxField1() { > return checkboxField1; > } > > public void setCheckboxField1(String checkboxField1) { > this.checkboxField1 = checkboxField1; > } > ---

Re: preselect dropdown

2004-10-29 Thread Ron Grabowski
> I usually do something like this: > > > > Whoops, "months" belongs to the ActionForm: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: preselect dropdown

2004-10-29 Thread Ron Grabowski
> The problem is that I have dropdowns for month and day. I would like > it if the dropdown for month could be prepolutated with the value the > user has allready saved before. So for example it could be > prepoluted with "February" and the user can select another value from > the dropdown if he/

RE: preselect dropdown

2004-10-29 Thread Slattery, Tim - BLS
> The problem is that I have dropdowns for month and day. I > would like it if the dropdown for month could be prepolutated > with the value the user has allready saved before. So for > example it could be prepoluted with "February" and the user > can select another value from the dropdown if