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
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
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
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]}">
>
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]
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
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:
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
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
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
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'
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:/
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
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
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
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
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
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
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
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
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
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
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
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
> 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
> -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.
26 matches
Mail list logo