RE: Checkbox not checked

2004-02-18 Thread Wendy Smoak
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

Re: Checkbox not checked

2004-02-17 Thread Curtis Taylor
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

Re: checkbox value from getter in collection of value object

2003-12-26 Thread atta-ur rehman
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:

RE: Checkbox deselect problem

2003-12-15 Thread Ravi Kulkarni
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:

Re: checkbox condition check

2003-12-04 Thread Hien Q Nguyen
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

Re: checkbox condition check

2003-12-04 Thread Hien Q Nguyen
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

Re: Checkbox and Map ActionForm

2003-11-26 Thread Ricky
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

Re: Checkbox and Map ActionForm

2003-11-26 Thread Ryan
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

RE: checkbox onclick event not getting called

2003-11-25 Thread Jimmy Emmanual
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

RE: checkbox onclick event not getting called

2003-11-25 Thread Paul McCulloch
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) {

RE: checkbox onclick event not getting called

2003-11-25 Thread [EMAIL PROTECTED]
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

RE: checkbox onclick event not getting called

2003-11-25 Thread Jimmy Emmanual
, 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

RE: Checkbox values

2003-11-14 Thread Sumit S.
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

RE: Checkbox values: how to substitute the value attribute by the book id?

2003-11-14 Thread Geert Van Landeghem
: 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

RE: Checkbox values: how to substitute the value attribute by the book id?

2003-11-14 Thread Geert Van Landeghem
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

RE: checkbox checking???

2003-10-09 Thread muzammil shahbaz
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

RE: Checkbox problem?

2003-06-11 Thread Bjørn T Johansen
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

Re: Checkbox problem?

2003-06-10 Thread James Mitchell
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

RE: Checkbox problem?

2003-06-10 Thread Kandi Potter
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

RE: Checkbox problem?

2003-06-10 Thread Kamholz, Keith (corp-staff) USX
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.

RE: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
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

RE: Checkbox problem?

2003-06-10 Thread Kevin Robair
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

Re: Checkbox problem?

2003-06-10 Thread Tor Henrik Hanken
[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

Re: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
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

Re: Checkbox problem?

2003-06-10 Thread James Mitchell
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

RE: Checkbox problem?

2003-06-10 Thread Mark Galbreath
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

Re: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
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?

2003-06-10 Thread Josh Rayls
: 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

Re: Checkbox problem?

2003-06-10 Thread Kevin Robair
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

RE: Checkbox problem?

2003-06-10 Thread Karr, David
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

RE: Checkbox problem?

2003-06-10 Thread Steve Raeburn
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

RE: Checkbox problem?

2003-06-10 Thread Wendy Smoak
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

RE: Checkbox

2003-05-31 Thread Abhinav (Cognizant)
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

RE: Checkbox

2003-05-31 Thread Mark Galbreath
:[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

RE: Checkbox ????

2003-05-30 Thread Kamholz, Keith (corp-staff) USX
, 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

RE: Checkbox ????

2003-05-30 Thread Abhinav (Cognizant)
:[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

Re: Checkbox

2003-05-30 Thread Carl Walker
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 --%

RE: Checkbox

2003-05-30 Thread Mark Galbreath
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)

RE: Checkbox ????

2003-05-29 Thread Andrew Hill
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,

Re: checkbox

2003-04-03 Thread Gemes Tibor
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

RE: checkbox

2003-04-03 Thread Andrew Hill
] 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

Re: checkbox

2003-04-03 Thread Gemes Tibor
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

RE: checkbox

2003-04-03 Thread Andrew Hill
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

RE: checkbox

2003-04-03 Thread Sri Sankaran
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

Re: checkbox

2003-04-03 Thread Claude Betancourt
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

Re: checkbox

2003-04-03 Thread Richard Raquepo
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

Re: checkbox

2003-04-03 Thread Gemes Tibor
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

RE: checkbox

2003-04-03 Thread Andrew Hill
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

Re: checkbox

2003-04-03 Thread Gemes Tibor
[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

RE: checkbox with struts

2003-03-06 Thread Chen, Gin
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

RE: checkbox and iterate problem

2003-02-27 Thread Phillip Qin
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

RE: checkbox and iterate problem

2003-02-26 Thread pqin
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

RE: checkbox and iterate problem

2003-02-26 Thread nkstruts
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

RE: checkbox and iterate problem

2003-02-26 Thread pqin
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

RE: checkbox and iterate problem

2003-02-26 Thread Neal
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

RE: checkbox and iterate problem

2003-02-26 Thread pqin
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

RE: checkbox and iterate problem

2003-02-26 Thread Neal
:[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

RE: checkbox and iterate problem

2003-02-26 Thread Neal
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

Re: Checkbox in a multiple-page form.

2003-01-07 Thread Affan Qureshi
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,

RE: Checkbox in a multiple-page form.

2003-01-07 Thread Weis, Michael
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

RE: Checkbox in a multiple-page form.

2003-01-07 Thread ROSSEL Olivier
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.

RE: Checkbox in a multiple-page form.

2003-01-07 Thread ROSSEL Olivier
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

RE: checkbox problem

2002-11-11 Thread Saini, Deepank
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

RE: checkbox problem

2002-11-11 Thread James Mitchell
- 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

RE: checkbox problem

2002-11-11 Thread Saini, Deepank
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

RE: checkbox problem

2002-11-11 Thread Saini, Deepank
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

/ /OREF:CPTD2D27 RE: checkbox problem

2002-11-11 Thread avasey
: Subject: RE: checkbox problem 11/11/2002 03:46

Re: checkbox always checked(help needed)

2002-11-07 Thread David M. Karr
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

RE: checkbox always checked(help needed)

2002-11-07 Thread Sandeep Karnwal, Noida
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

RE: Checkbox problem

2002-10-24 Thread Sri Sankaran
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

Re: Checkbox won't stay checked! [ Was: Damn where is bug in mycode???? ]

2002-10-15 Thread Eddie Bush
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When Ch eckBox is unchecked

2002-10-04 Thread Galbreath, Mark
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Andrew Hill
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Galbreath, Mark
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Galbreath, Mark
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Andrew Hill
' 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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Charlesworth, Chico
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted Whe n CheckBox is unchecked

2002-10-04 Thread Galbreath, Mark
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

RE: CheckBox and Boolean[] Array - Incorrect Values Submitted When CheckBox is unchecked

2002-10-04 Thread Andrew Hill
, 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

RE: Checkbox in iterate

2002-08-19 Thread Kamholz, Keith (corp-staff) USX
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

RE: Checkbox in iterate

2002-08-19 Thread Kamholz, Keith (corp-staff) USX
]] 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

RE: Checkbox in iterate

2002-08-19 Thread Gilles . Vandaele
] cc: 19/08/2002 15:02 Subject: RE: Checkbox in iterate

RE: Checkbox in iterate

2002-08-19 Thread Kamholz, Keith (corp-staff) USX
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

RE: Checkbox Issue

2002-07-12 Thread Jacob Hookom
% 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

RE: Checkbox Issue

2002-07-12 Thread Joseph Barefoot
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

RE: Checkbox Issues

2002-07-11 Thread Jesse Alexander (KADA 11)
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

RE: CheckBox problem in struts..

2002-04-06 Thread srinivas
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

Re: Checkbox state not changing after checked on

2002-02-23 Thread Ted Husted
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

RE: Checkbox state not changing after checked on

2002-02-23 Thread Chris Means
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

Re: checkbox

2002-01-20 Thread Ted Husted
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:

RE: checkbox

2002-01-15 Thread Tom Klaasen (TeleRelay)
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

Re: checkbox

2001-08-03 Thread Rohan Oberoi
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

Re: Checkbox problem still not fixed :(

2001-06-28 Thread Linnea Ahlbeck
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

Re: Checkbox problem still not fixed :(

2001-06-28 Thread Joel Vogt
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"

RE: Checkbox Arrays

2001-05-11 Thread Dudley [EMAIL PROTECTED]
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

RE: Checkbox Arrays

2001-05-11 Thread Tony Karas
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

RE: Checkbox Arrays

2001-05-11 Thread Tony Karas
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

RE: Checkbox Arrays - Internationalising them?!

2001-05-11 Thread dhay
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   2   >