Re: checkboxes

2009-01-30 Thread Reinhard Wagner
ers, REinhard Original-Nachricht > Datum: Fri, 30 Jan 2009 13:20:36 +0100 > Von: "Sébastien Domergue" > An: Struts Users Mailing List > Betreff: Re: checkboxes > Hi, > > We had the same problem with a checkboxlist. Actually, a html checkbox > do

Re: checkboxes

2009-01-30 Thread Sébastien Domergue
Hi, We had the same problem with a checkboxlist. Actually, a html checkbox does not send a data if it's unchecked. In a simple form, no data means false so we don't see anything. In a list, that means there are only the number of true which correspond to the number of checkbox checked. In orde

Re: Checkboxes problem

2007-07-05 Thread Andreja
Yes, I agree, but in that case I can not display checkboxes vertically (each one in a new row). To be able to do so using checkboxlist I would have to make a custom template. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Checkboxes problem

2007-07-04 Thread tom tom
because you have the list, you can do the following You dont need to iterate --- Andreja <[EMAIL PROTECTED]> wrote: > Thank you very much Sharad, that WORKS! :] > > > > Just for the archive, this is also a possibility: > > > fieldValue="${manyNames[cnt.index]}"> >

Re: Checkboxes problem

2007-07-04 Thread Andreja
Thank you very much Sharad, that WORKS! :] Just for the archive, this is also a possibility: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Checkboxes problem

2007-07-04 Thread sharad bhushan
TED]> To: Struts Users Mailing List Sent: Wednesday, 4 July, 2007 1:24:25 PM Subject: Re: Checkboxes problem Sharad, thank you for the answer. Keeping in mind what you said, I tried to make it work like this: This populates the checkboxes, but when I submit th

Re: Checkboxes problem

2007-07-04 Thread Andreja
Sharad, thank you for the answer. Keeping in mind what you said, I tried to make it work like this: This populates the checkboxes, but when I submit the data, all I can get is ArrayList of true booleans: [true, true...], and I can not use that. I need something like:

Re: Checkboxes problem

2007-07-03 Thread sharad bhushan
Hi, Just a suggestion Why dont you have the common name for all check box holding the different values.How ever you may loose the struts2-checkbox feature(checkbox state) by doing this.YOu can populate the values of the checkbox in to a bean and use the across. Regards Sharad Send free SMS

RE: Checkboxes...

2005-12-23 Thread Shilpa . Nalgonda
riday, December 23, 2005 10:52 AM To: 'Struts Users Mailing List' Subject: RE: Checkboxes... The reset() method is called first. Then the form is populated from the request and then your Action code executes. You can set them false in reset() method and then reset the default values in

RE: Checkboxes...

2005-12-23 Thread Leahy, Kevin
ubmit anything when the checkbox is off. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 December 2005 15:27 To: user@struts.apache.org Subject: RE: Checkboxes... If i make them false in reset method, i cannot set any checkboxes by defalut to checked.. everytim

RE: Checkboxes...

2005-12-23 Thread Shilpa . Nalgonda
List Subject: Re: Checkboxes... On 12/22/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Even though teh default boxes are unchecked, they are > coming as selected in the java code. > > How can i unselect them... Are you setting them to false in the 'reset'

Re: Checkboxes...

2005-12-22 Thread Wendy Smoak
On 12/22/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Even though teh default boxes are unchecked, they are > coming as selected in the java code. > > How can i unselect them... Are you setting them to false in the 'reset' method of your form bean, as described in the documentation? http:/

RE: Checkboxes with display tag

2004-10-12 Thread Shabada, Gnaneshwer
PM To: Struts Users Mailing List Subject: Re: Checkboxes with display tag I think you need to be using multibox for this to work. I just did something similar recently and this is how I did it: I am using JSP2.0+JSTL+EL. Using id="row" in the display:table gives me a hand

Re: Checkboxes with display tag

2004-10-11 Thread Jason Lea
I think you need to be using multibox for this to work. I just did something similar recently and this is how I did it: I am using JSP2.0+JSTL+EL. Using id="row" in the display:table gives me a handle to each object in the list so I can get the id for each row. Then I use ${row.id} t

Re: CheckBoxes in tag

2004-10-01 Thread Ratnakar Parakala
Hi, Why don't you use for the same We are using it for similar functionality. Ratnakar Wendy Smoak <[EMAIL PROTECTED]> wrote: From: "Shabada, Gnaneshwer" > You are right. But like I did in my previous snippet, if I setup my > deleteAction mapping to deleteForm in my config file I would

Re: CheckBoxes in tag

2004-09-27 Thread Wendy Smoak
From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > You are right. But like I did in my previous snippet, if I setup my > deleteAction mapping to deleteForm in my config file I would think the > searchResults.jsp should by default take deleteForm as its ActionForm and > recognize memberList in the it

RE: CheckBoxes in tag

2004-09-27 Thread Shabada, Gnaneshwer
iling List Subject: Re: CheckBoxes in tag From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > Baahh! why didn't that strike me :) > I'll put searchResults in session and it should work.. > Thanks for your help, Wendy. You're welcome... sometimes there's a goo

Re: CheckBoxes in tag

2004-09-27 Thread Wendy Smoak
From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > Baahh! why didn't that strike me :) > I'll put searchResults in session and it should work.. > Thanks for your help, Wendy. You're welcome... sometimes there's a good reason not to put something in session scope. To the consternation of my network

RE: CheckBoxes in tag

2004-09-27 Thread Shabada, Gnaneshwer
Baahh! why didn't that strike me :) I'll put searchResults in session and it should work.. Thanks for your help, Wendy. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 6:33 PM To: Struts Users Mailing List Subject: Re: CheckBox

Re: CheckBoxes in tag

2004-09-27 Thread Wendy Smoak
From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > And changed the logic:iterate tag > type="org.acaosa.registration.RegistrationTO"> > > This time it didnot recognize memberList and gave me a NullPointerException. You seem to be expecting to "know" that memberList is a property of some form. I

RE: CheckBoxes in tag

2004-09-27 Thread Shabada, Gnaneshwer
t: Monday, September 27, 2004 6:03 PM To: Struts Users Mailing List Subject: Re: CheckBoxes in tag From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > I replaced the checkbox with multi box and in my action class when I > retrieved values, I was getting as "$register.me

Re: CheckBoxes in tag

2004-09-27 Thread Wendy Smoak
From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > I replaced the checkbox with multi box and in my action class when I > retrieved values, I was getting as "$register.memberId" Strings rather than > the memberIds for those checked. Am I doing anything wrong? Are you using a JSP 2.0 container, and

RE: CheckBoxes in tag

2004-09-27 Thread Shabada, Gnaneshwer
t; Strings rather than the memberIds for those checked. Am I doing anything wrong? Thanks Gnan -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 5:00 PM To: Struts Users Mailing List S

Re: CheckBoxes in tag

2004-09-27 Thread Wendy Smoak
From: "Shabada, Gnaneshwer" <[EMAIL PROTECTED]> > I am running into problem when trying to implement checkboxes using Struts > html:checkbox tag in tag. The scenario is as follows: If you have multiple checkboxes, the multibox tag, not checkbox. Then it should populate your String[] property. I

Re: Checkboxes

2004-07-27 Thread James Mitchell
> Can anyone provide an answer to this.. Yes. Based on the information you have given, here is the answer: Answer: You are doing something wrong. (Give us more detail) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Mess

RE: Checkboxes

2004-07-12 Thread Jim Barrows
> -Original Message- > From: simon_delaroute [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 11, 2004 7:46 PM > To: [EMAIL PROTECTED] > Subject: Checkboxes > > > Hi > I am using struts and want to display a list of options for the user > to select with checkboxes using the struts-el tags.