From: Curtis Taylor [mailto:[EMAIL PROTECTED]
I'm not exactly sure, but I'm a tad suspect of your 'c:if
test' expression. It looks suspiciously like a Python boolean
test for the object's presence. AFAIK, in JSTL one needs to be
more explicit as to what value (or lack thereof)
when
Hi Wendy,
I'm not exactly sure, but I'm a tad suspect of your 'c:if test' expression. It
looks suspiciously like a Python boolean test for the object's presence.
AFAIK, in JSTL one needs to be more explicit as to what value (or lack thereof)
when testing...
Unless, of course, it's just a typo
Hello Shahfazal,
As i understand from the 'applicantId' getter, you want to use these
checkboxes as a selecting indicator. If so, create a String[]
getter/setter in your ActionForm, let say:
setSelectedApplicants(String[] ids)
String[] getSelectedApplicants()
now in your jsp you can write:
Hello Michael,
We need to handle checkboxes in special way. Reset method in FormBean is
exactly meant for this. We need to reset the checkboxes to its default
value.
Kulkarni.
-Original Message-
From: Frers Michael [mailto:[EMAIL PROTECTED]
Sent: Monday, December 15, 2003 2:23 PM
To:
Are you saying that you have a fixed set of options and depends on
what value is from your bean, the option that has the same value will
be checked?
Maybe something like this?
form
input name=checkbox type=checkbox value=val1
c:if test=${myval == 'val1'}checked/c:if
Check Box
Ops the c:if's tests should be
c:if test=${myval == 'val1'}checked/c:if
c:if test=${myval == 'val2'}checked/c:if
c:if test=${myval == 'val3'}checked/c:if
or Check Box 1,2,and 3 respectively.
-H
On Dec 4, 2003, at 7:28 PM, Hien Q Nguyen wrote:
Are you saying that you have a fixed set of
why not use JSTL c:forEach.? :)
- Original Message -
From: Ryan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 27, 2003 12:31 AM
Subject: Checkbox and Map ActionForm
I have checkboxes on my form that have multiple options/group.
The name for each group of
The array generated from selecting multiple checkboxes with the same
name is not being passed as a whole value into the action form. Instead
only the first value is being set as the value. I was wondering how you
would get the whole array into the action form.
Thanks
Ryan
Ricky wrote:
why
try onclick=check(this.myname)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: checkbox onclick event not getting called
Hi,
My code is like the following, when I click the checkbox, nothing
This is probably OT, but anyway...
It may be the way you are referencing the form. Try
'document.forms[0].add.disabled = ( element.checked );'
That worked for me - I didn't use struts though - I just messed around with
static html:
html
SCRIPT LANGUAGE=JavaScript
function check(element) {
It's still not working. Any other option? I am using Mozilla, will that be the reason?
Jimmy Emmanual [EMAIL PROTECTED] wrote:try onclick=check(this.myname)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 11:20 AM
To: [EMAIL
, 2003 12:04 PM
To: 'Struts Users Mailing List'
Subject: RE: checkbox onclick event not getting called
try onclick=check(this.myname)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: checkbox onclick
Geert,
this would create BookListKey[i].selectedBook = 1 for Checked Books
When you have to render this info try
logic:present name=BookListKey
logic:iterate id=book name=BookListKey
logic:equal name=book property=selectedBook value=1
brselected
: vrijdag 14 november 2003 12:51
To: Struts Users Mailing List
Subject: RE: Checkbox values
Geert,
this would create BookListKey[i].selectedBook = 1 for Checked Books
When you have to render this info try
logic:present name=BookListKey
logic:iterate id=book name=BookListKey
But how to substitute the value=?? by the book id?
Geert
-Original Message-
From: Geert Van Landeghem
Sent: vrijdag 14 november 2003 14:48
To: Struts Users Mailing List
Subject: RE: Checkbox values: how to substitute the value attribute by
the book id?
Sumit,
I found a solution
The array which are using to store values of checkboxes after form
submission; just initialize that array with the value which you wana
check.
e.g.
in form bean:
String[] array = {1}; // this is an array which will be used to store
values of the checkboxes
on jsp:
html:multibox
To: Struts Users Mailing List
Subject: Re: Checkbox problem?
oki, maybe my explanation isn't the best :) (I know that I can't do it
in the reset method, as it is clearly not working) but I am still not
sure where to put the code to set the checkbox to true then.
As far as I know, the action
Can you describe what's going on in more detail?
--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
- Original Message -
From: Bjorn T Johansen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 4:26 AM
Subject: Checkbox problem?
I
I would suggest not doing the propagate in the reset. Just use it for the original
values. The values entered on the form are automatically propagated by struts after
the reset by the setters and getters. Just put in some logging or print statements
in those methods and you will see when
I had some issues with the methods, so I came up with something else that
works very nicely.
In the JSP, right after the code for the checkbox, use:
jsp:setProperty name=beanName property=checkboxProperty value=false
/
This allows the form submission to work correctly, without any messy code.
Yes, but to clarify...
I am showing a jsp page with values read from a database. If the
checkbox value is true, how do I then make the checkbox on my jsp-page
checked and how do I then find out if the checkbox has been unchecked?
Do I have to manually read the posted data and see if the checkbox
In your ActionForm reset() method, set the checkbox
value to false.
Struts will set the value to true if the box is
checked.
If you are using DynaForms, you will need to extend it
and override the reset() method.
To populate the checkbox initially, you need to
instantiate and populate the form
[EMAIL PROTECTED]
| Yes, but to clarify...
| I am showing a jsp page with values read from a database. If the
| checkbox value is true, how do I then make the checkbox on my jsp-page
| checked and how do I then find out if the checkbox has been unchecked?
| Do I have to manually read the posted
You are missing my point! If I just could set the checkbox value to
false in the reset method, everything is fine. But there are times when
that value has to be reset to true and not false and if I do that in my
reset method, I am not able to see of the user unchek the checkbox,
because the
On Tuesday 10 June 2003 14:11, Bjørn T Johansen wrote:
You are missing my point! If I just could set the checkbox value to
false in the reset method, everything is fine. But there are times when
that value has to be reset to true and not false and if I do that in my
reset method, I am not able
Go get 'em, James!
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:29 PM
To: Struts Users Mailing List
Subject: Re: Checkbox problem?
On Tuesday 10 June 2003 14:11, Bjørn T Johansen wrote:
You are missing my point! If I just could set
oki, maybe my explanation isn't the best :) (I know that I can't do it
in the reset method, as it is clearly not working) but I am still not
sure where to put the code to set the checkbox to true then.
As far as I know, the action class isn't called before after the form
bean has called the reset
: Re: Checkbox problem?
oki, maybe my explanation isn't the best :) (I know that I can't do it
in the reset method, as it is clearly not working) but I am still not
sure where to put the code to set the checkbox to true then.
As far as I know, the action class isn't called before after the form
You can pre-populate the form in a previous action. Here is an example.
http://jakarta.apache.org/struts/faqs/newbie.html#prepopulate
-Kevin
--- Bjørn T Johansen [EMAIL PROTECTED] wrote:
oki, maybe my explanation isn't the best :) (I know that I can't do it
in the reset method, as it is
are set or not.
-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 12:38 PM
To: Struts Users Mailing List
Subject: Re: Checkbox problem?
oki, maybe my explanation isn't the best :) (I know that I can't do it
in the reset method
this clarifies things.
Steve
-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: June 10, 2003 12:38 PM
To: Struts Users Mailing List
Subject: Re: Checkbox problem?
oki, maybe my explanation isn't the best :) (I know that I can't do it
in the reset method
Steve wrote:
The suggested method requires two actions.
SetupAction - Form - ProcessAction
The first action prepares any values required by your form,
including setting the value of your checkboxes to true. The
second action is the one that actually processes the user
input gathered by
other option.
-Original Message-
From: Carl Walker [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 4:42 PM
To: Struts Users Mailing List
Subject: Re: Checkbox
You should use a java.lang.String or java.lang.String[] property if you want
to have 'abc' submitted when checkbox 'chk
:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 8:55 AM
To: Struts Users Mailing List
Subject: RE: Checkbox
thanx.
I have to set the value of the checkbox in the JSP.
for this I write
html:checkbox property='primKey value=val/
problem is that the value is dynamic, so I have to use something like
, I am no expert with this stuff, so if there is any reason not to do
this I'd be interested in hearing it.
- Keith
www.buffalo.edu/~kkamholz
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 8:18 AM
To: Struts Users Mailing List
Subject: RE
:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 5:48 PM
To: Struts Users Mailing List
Subject: RE: Checkbox
The value is what is submitted for the checkbox if the checkbox is a checked
checkbox.
For example: if your form has a string property named foo, and your
checkbox's value is bob
You should use a java.lang.String or java.lang.String[] property if you want
to have 'abc' submitted when checkbox 'chk' is checked.
If you want 'true' to be sent when 'chk' is checked, then change 'abc' to
'true'.
Take a look at this example for additional guidance
%-- FILE checkForm.jsp --%
By default, a boolean checkbox returns ON when checked, nothing when not
(so you have to initialize and reset it to false in your ActionForm). If you
want a value to be sent when checked, change the checkbox's type to String.
Mark
-Original Message-
From: Abhinav (Cognizant)
The value is what is submitted for the checkbox if the checkbox is a checked
checkbox.
For example: if your form has a string property named foo, and your
checkbox's value is bob, then if you check the checkbox and submit,
form.getFoo() will return bob.
If you dont check the checkbox and submit,
Richard Raquepo írta:
is there a maximum # of checkbox that a user can only select... i have a least 500 checkboxes when i all of them is check submit won't work but checking say sumthing around 200 chekboxes , submit will work?
No, but there is a limitation of max length (around 2000, not
]
Sent: Thursday, 3 April 2003 18:57
To: Struts Users Mailing List
Subject: Re: checkbox
Richard Raquepo írta:
is there a maximum # of checkbox that a user can only select... i have a
least 500 checkboxes when i all of them is check submit won't work but
checking say sumthing around 200 chekboxes
Andrew Hill írta:
I was under the impression the max length of a get url was much lower (as
far as the spec goes - although I believe IE and Mozilla both support longer
ones than the minumum the spec mandates). Dont have the figures though :-(
Ok I looked it up:
The HTTP 1.1 (RFC2068) does not
Thanks for clarrifying that.
URL limitations are a micro$oft 'feature' eh?
Why am I not surprised? ;-
-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 19:16
To: Struts Users Mailing List
Subject: Re: checkbox
Andrew Hill írta:
I was under
All this is fine and dandy but isn't form-submission typically a POST operation? If
you use html:form the default is POST.
Sri
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 6:34 AM
To: Struts Users Mailing List
Subject: RE: checkbox
I think your issue has to do more with design than what you're asking. Is
an user interface really useful when there are 200-500 checkboxes to choose
from? Maybe not...
Try reorganizating your data so that it can be either narrowed down or
presented differently, maybe thru a search prior to
added in the url post is long and the browser is limited. so try using
method=post instead...
thanks...
- Original Message -
From: Claude Betancourt [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, April 04, 2003 3:55 AM
Subject: Re: checkbox
I think your
Sri Sankaran írta:
All this is fine and dandy but isn't form-submission typically a POST operation? If you use html:form the default is POST.
The thead was about what issues should one be aware of using huge amount
of checkboxes.
This *is* an issue in this case and we clarified it.
Tib
Not if you POST it
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, 4 April 2003 15:23
To: [EMAIL PROTECTED]
Subject: RE: checkbox
Well, I have a health form I am implementing. I plan to have around 75 to
100 checkboxes. Is that too many?
-Original
[EMAIL PROTECTED] írta:
Well, I have a health form I am implementing. I plan to have around 75 to 100 checkboxes. Is that too many?
If I were you I'd split it up for about 4-5 pages and max 20 inputs on
each.
It would make the cliend feel comfortable.
But it could work in one page using POST
If you use:
html:checkbox property=.. it will automatically put it into the
dynaactionform that you set up for the action on submit of the form.
-Tim
-Original Message-
From: Giovanni Di Lembo [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 2:06 PM
To: Struts Users Mailing List
Is Doing
-Original Message-
From: Neal [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 5:51 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate problem
I'm afraid you've lost me, I thought the propery HAD to be boolean for a
checkbox.
Can you please send me a code snippet of what you
Have to set default value in reset method.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 1:18 PM
To: [EMAIL PROTECTED]
Subject: checkbox and
I have a Reset method, and I am calling mFolders[i].setChecked(false) for
each item in my array. Is that what you mean by setting the default value
?
If so, it hasn't fixed my problem.
Thanx
Have to set default value in reset method.
Regards,
PQ
This Guy Thinks He Knows Everything
This
PROTECTED]
Subject: RE: checkbox and iterate problem
I have a Reset method, and I am calling mFolders[i].setChecked(false) for
each item in my array. Is that what you mean by setting the default value
?
If so, it hasn't fixed my problem.
Thanx
Have to set default value in reset method.
Regards
of false (which is a primitive type).
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate
PROTECTED]
Subject: RE: checkbox and iterate problem
I changed everything from boolean (primative) to Boolean (Object type), no
difference
I still see the same behavior.
After submit my setter function is not called.
but for a non-indexed checkbox it is called.
However the getter() is always
:[EMAIL PROTECTED]
Sent: February 26, 2003 5:20 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate problem
I changed everything from boolean (primative) to Boolean (Object type),
no difference
I still see the same behavior.
After submit my setter function is not called.
but for a non
the collection and set false
(String) to each checked.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Neal [mailto:[EMAIL PROTECTED]
Sent: February 26, 2003 5:20 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox
Same problem here as well. But in my case the checkbox values are coming
from the database. So I can't set all checkbox properties to false in the
reset() method.
Any solution in mind?
Affan
- Original Message -
From: ROSSEL Olivier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday,
Hi,
Actually you would have the same problem on pages 2, 3, etc. if there were
any checkboxes.
we had the same problem and solved it by writing separate reset functions
for each page.
In the general action forms reset method an additional property (e.g.
pageId) of the action
form controlls the
Same problem here as well. But in my case the checkbox values
are coming
from the database. So I can't set all checkbox properties to
false in the
reset() method.
Any solution in mind?
It is quite tricky.
In the reset, you must check what's the page where you clicked
the submit button.
Hi,
Actually you would have the same problem on pages 2, 3, etc.
if there were
any checkboxes.
we had the same problem and solved it by writing separate
reset functions
for each page.
In the general action forms reset method an additional property (e.g.
pageId) of the action
may u need to reset the value of the checkbox to (false or true) in the
reset method of ur formbean
-Original Message-
From: Hirschmann, Bernhard [mailto:Bernhard.Hirschmann;t-systems.com]
Sent: Monday, November 11, 2002 7:00 PM
To: '[EMAIL PROTECTED]'
Subject: checkbox problem
Hello
-
From: Saini, Deepank [mailto:deepank.saini;cgey.com]
Sent: Monday, November 11, 2002 8:33 AM
To: 'Struts Users Mailing List'
Subject: RE: checkbox problem
may u need to reset the value of the checkbox to (false or true) in the
reset method of ur formbean
-Original Message
if u want uncheck the box, after a submit , set it to false
-Original Message-
From: James Mitchell [mailto:jmitchtx;telocity.com]
Sent: Monday, November 11, 2002 7:06 PM
To: Struts Users Mailing List
Subject: RE: checkbox problem
You need to set it to false in the reset() method
Nachricht-
Von: James Mitchell [mailto:jmitchtx;telocity.com]
Gesendet: Montag, 11. November 2002 14:36
An: Struts Users Mailing List
Betreff: RE: checkbox problem
You need to set it to false in the reset() method.
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org
If you
:
Subject: RE: checkbox problem
11/11/2002 03:46
Sandeep == Sandeep Karnwal Sandeep writes:
Sandeep Hi! all
Sandeep I am using multibox to display the multiple checkbox.
Sandeep By default all checkbox should be checked. I am not able to find any of
the
Sandeep property of the multibox so that by default all checkbox should be
Thanks David
This solves my problem.
Regards
Sandeep
-Original Message-
From: [EMAIL PROTECTED] [mailto:dmkarr;earthlink.net]
Sent: Thursday, November 07, 2002 8:25 PM
To: [EMAIL PROTECTED]
Subject: Re: checkbox always checked(help needed)
Sandeep == Sandeep Karnwal Sandeep writes
I suppose you have several checkboxes corresponding to the List of objects.
Are you using the html:multibox tag? If not, you should. The Struts framework will
save the selected values in a String array that you provide. The value stored will be
the value of the checkbox. For example
Karr, David wrote:
You might try using a more specific title line.
We'd all be better off if you asked a direct question, as opposed to having
us scan all of your code for anything that might be wrong. Is this code not
working? If not, what is happening? Are you getting any specific error
This is by design and you will have to write some code to accommodate it.
The HTML spec mandates that no request values are passed for unchecked
checkboxes, so you will have to keep track of the checkboxes yourself. What
I do is type the checkboxes as String rather than boolean in the ActionForm
For multiple, you also must set values back to false in reset() (The
question here of course is which checkbox refers to which element. You may
need to refactor such that your checkboxes return non boolean values so you
can tell which is which at the server end).
The reason for this is that the
If that is the case, then why does it work with single boolean properties? I
only get this problem when working with an array.
Chico
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 13:12
To: 'Struts Users Mailing List'
Subject: RE: CheckBox
Hey man! RU refactoring my messages? ;-)
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked
For multiple
by
default.
Mark
-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:18 AM
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
Whe n CheckBox is unchecked
If that is the case, then why does
Yeah of course I gotcha now ...
Cheers
chico
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 13:26
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n
CheckBox is unchecked
I'm not sure
'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked
Hey man! RU refactoring my messages? ;-)
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:17 AM
To: Struts Users Mailing List
Subject: RE
at home!!
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 13:42
To: Struts Users Mailing List
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When
CheckBox is unchecked
Wrote it before I read yours.
Just had a beer and a GT so my
And the crowd roars!!!
-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 8:56 AM
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
Whe n CheckBox is unchecked
Sorted!!
Got
, October 04, 2002 20:56
To: 'Struts Users Mailing List'
Subject: RE: CheckBox and Boolean[] Array - Incorrect Values Submitted
When CheckBox is unchecked
Sorted!!
Got a String[] (checkboxes), and when form is submitted the positions of the
checked checkboxes are sent in this array ...
% int i
Hey,
You kinda confused me about what your problem was. Could you maybe explain
it better if I'm wrong about it?
It sounds like you just want to know which rows are checked. You need to
specify the 'indexId' attribute in the logic:iterate ... tag to create a
variable that stores the index of
]]
Sent: Monday, August 19, 2002 9:00 AM
To: 'Struts Users Mailing List'
Subject: RE: Checkbox in iterate
Hey,
You kinda confused me about what your problem was. Could you maybe explain
it better if I'm wrong about it?
It sounds like you just want to know which rows are checked. You need
]
cc:
19/08/2002 15:02 Subject: RE: Checkbox in iterate
not more help, perhaps one of the more experienced struts users
have some input.
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 9:23 AM
To: Struts Users Mailing List
Subject: RE: Checkbox in iterate
% if ( session.getAttribute(key) == null ) { %
input type=checkbox name=variable value=true
% } else { %
input type=checkbox name=variable value=true checked
% } %
-Original Message-
From: Chandra Gottipati [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 5:49 PM
Users Mailing List'; 'Chandra Gottipati'
Subject: RE: Checkbox Issue
% if ( session.getAttribute(key) == null ) { %
input type=checkbox name=variable value=true
% } else { %
input type=checkbox name=variable value=true checked
% } %
-Original Message-
From: Chandra
Hi,
a bit of peace, please (less than a day and already stressing...).
The documentation and the mailing list archives clearly state, that checkboxes
must be set to false (if boolean) or space (if string), and nothing else.
Obvioulsy this only happens if you are going through an action.
hth
reset the check box values in the struts form reset method.
-Original Message-
From: Sachin [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 6:35 PM
To: [EMAIL PROTECTED]
Subject: CheckBox problem in struts..
Hi
Could anyone explain about the checkbox problem in struts
if i
The underlying problem is that the HTML spec tells the browsers to not
submit a checkbox if it is not checked. (Or any other blank control for
that matter.) There's not a lot we can do about that =:o(
What happens with a box that starts out checked, is that when it is
unchecked, nothing is
help.
-Chris
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 4:32 PM
To: Struts Users Mailing List
Subject: Re: Checkbox state not changing after checked on
The underlying problem is that the HTML spec tells the browsers
http://jakarta.apache.org/struts/struts-html.html#checkbox
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement
setting the corresponding boolean property to false in the reset()
method.
Serge A. Redchuk wrote:
Check the archives -- this question has been answered many many times
before on this list.
Short answer: use the reset() method of your form.
hth,
tomK
-Original Message-
From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 15 januari 2002 13:21
To: Struts Users Mailing
Stefan,
I've done something similar. My solution (which may not be ideal) was as
follows: define an ArrayList property (activitiesToDelete) in the Form
bean to which you are submitting this form. Then use a cell inside your
iterator like this:
td
html:multibox
Hi!
I had a similar problem and solved it by changing
the attribute scope in my
action in the struts-config.xml file to request
instead of session.
/Linnéa
- Original Message -
From:
Joel Vogt
To: [EMAIL PROTECTED]
Sent: Thursday, June 28, 2001 10:04
AM
Hi all,
I've worked on it a bit more and come up with these
steps to make it work.
I use a multibox instead of a checkbox like this on
my form:
html:multibox name="model" property="member"
value="yes"/
I then also include with this a hidden
field
html:hidden name="model"
yes please,, please share
-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 9:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Checkbox Arrays
I don't know if this is the right thread. But I just got multibox working
in my app (including preservation
Ah sorry Hal - thanks for your perseverance - I was assuming, mistakenly,
that multibox was something else. I'll take a look at this - cheers.
Tony
From: Deadman, Hal [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Checkbox Arrays
Date: Thu, 10 May 2001 12:20
I am amazed (and pleased) at your perseverance :-)
From: Deadman, Hal [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Checkbox Arrays
Date: Thu, 10 May 2001 13:35:12 -0400
Don't use the html:checkbox, use html:multibox and use bean:write in the
body of the tag
the archives and
couldn't find it...
Thanks,
Dave
Deadman, Hal [EMAIL PROTECTED] on 05/10/2001
12:20:58 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: RE: Checkbox Arrays
I posted this same response to your Posting Collections
1 - 100 of 109 matches
Mail list logo