You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Emmanuel Feller <Em...@free.fr> on 2003/02/14 16:44:30 UTC

Re:[Bug 12573] - Handling of HTML-Checkboxes and (dynamic) FormBeans result in false values

Hi,

I'm quite new to the ML, struts and ASF projects, so please
escuse my poor english (i'm french). If it is not the way to
submit a solve the bug please redirect me. :)

I have a solution for the chekbox missing in the request
when not checked : the taglib should g�n�rate after the
checkbox input tag an hidden input tag wich have the same
name than the chekbox. So if the checkbox is checked, the
first value in the request is 'yes' (from the checkbox) and
ignore the second one, else the value of parameter is 'no'
from the hidden input.

I hope it helps. I'll submit to the list a patch for the
taglib on monday if needed.

Regards
Emmanuel

Emmanuel Feller
Cap Gemini Ernst & Young
+33 2 51 17 35 00 poste 37 16
+33 6 23 34 63 39




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Re: Re:[Bug 12573] - Handling of HTML-Checkboxes and (dynamic) FormBeans result in false values

Posted by Antoine Levy-Lambert <le...@tiscali-dsl.de>.
Emmanuel,
there is a bugtracking system for this kind of problems called bugzilla
have a look at this URL
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12573
and http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2075
Like you, I was not happy about this checkbox issue, so I reopened this bug
12573.
You should create yourself a login in bugzilla, and vote for the bug 12573
which will encourage the struts committers to find a solution,
if a solution is doable. Put yourself also on cc in the bug form for 12573
so that you are informed of any status change there.

Antoine
----- Original Message -----
From: "Emmanuel Feller" <Em...@free.fr>
To: "Struts Developers List" <st...@jakarta.apache.org>
Sent: Friday, February 14, 2003 4:44 PM
Subject: Re:[Bug 12573] - Handling of HTML-Checkboxes and (dynamic)
FormBeans result in false values


> Hi,
>
> I'm quite new to the ML, struts and ASF projects, so please
> escuse my poor english (i'm french). If it is not the way to
> submit a solve the bug please redirect me. :)
>
> I have a solution for the chekbox missing in the request
> when not checked : the taglib should générate after the
> checkbox input tag an hidden input tag wich have the same
> name than the chekbox. So if the checkbox is checked, the
> first value in the request is 'yes' (from the checkbox) and
> ignore the second one, else the value of parameter is 'no'
> from the hidden input.
>
> I hope it helps. I'll submit to the list a patch for the
> taglib on monday if needed.
>
> Regards
> Emmanuel
>
> Emmanuel Feller
> Cap Gemini Ernst & Young
> +33 2 51 17 35 00 poste 37 16
> +33 6 23 34 63 39
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Re: [Bug 12573] - Handling of HTML-Checkboxes and (dynamic) FormBeans result in false values

Posted by Emmanuel Feller <Em...@free.fr>.
Hi James,

We use this such of thing on projects in production for
years and we do not have any bug related. We tested this
with IE, Mozilla and Opera but it should work with any
browser.
When the form is submitted, the file is parsed and the
checkbox and the input are in lexical order.

I will submit a patch and committers will be able to test.

I understand the process for bug solving, escuse my mistake.
next i will use bugzilla :).

Regards,
Emmanuel

Emmanuel Feller
Cap Gemini Ernst & Young
+33 2 51 17 35 00 poste 37 16
+33 6 23 34 63 39

----- Message d'origine -----
De : "James Mitchell" <jm...@earthlink.net>
� : "'Struts Developers List'"
<st...@jakarta.apache.org>
Envoy� : vendredi 14 f�vrier 2003 16:52
Objet : RE: [Bug 12573] - Handling of HTML-Checkboxes and
(dynamic) FormBeans result in false values


I don't believe that will work since you are not guaranteed
any order
for form fields submitted.



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

"The man who does not read good books has no advantage over
the man who
cannot read them."
- Mark Twain (1835-1910)







> -----Original Message-----
> From: Emmanuel Feller [mailto:Emmanuel.Feller@free.fr]
> Sent: Friday, February 14, 2003 10:45 AM
> To: Struts Developers List
> Subject: Re:[Bug 12573] - Handling of HTML-Checkboxes and
> (dynamic) FormBeans result in false values
>
>
> Hi,
>
> I'm quite new to the ML, struts and ASF projects, so
please
> escuse my poor english (i'm french). If it is not the way
to
> submit a solve the bug please redirect me. :)
>
> I have a solution for the chekbox missing in the request
> when not checked : the taglib should g�n�rate after the
> checkbox input tag an hidden input tag wich have the same
> name than the chekbox. So if the checkbox is checked, the
> first value in the request is 'yes' (from the checkbox)
and
> ignore the second one, else the value of parameter is 'no'
> from the hidden input.
>
> I hope it helps. I'll submit to the list a patch for the
> taglib on monday if needed.
>
> Regards
> Emmanuel
>
> Emmanuel Feller
> Cap Gemini Ernst & Young
> +33 2 51 17 35 00 poste 37 16
> +33 6 23 34 63 39
>
>
>
>
> ----------------------------------------------------------
-----------
> To unsubscribe, e-mail:
struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
struts-dev-help@jakarta.apache.org
>


------------------------------------------------------------
---------
To unsubscribe, e-mail:
struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail:
struts-dev-help@jakarta.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


RE: [Bug 12573] - Handling of HTML-Checkboxes and (dynamic) FormBeans result in false values

Posted by James Mitchell <jm...@earthlink.net>.
I don't believe that will work since you are not guaranteed any order
for form fields submitted.  



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org/

"The man who does not read good books has no advantage over the man who
cannot read them."
	- Mark Twain (1835-1910)







> -----Original Message-----
> From: Emmanuel Feller [mailto:Emmanuel.Feller@free.fr] 
> Sent: Friday, February 14, 2003 10:45 AM
> To: Struts Developers List
> Subject: Re:[Bug 12573] - Handling of HTML-Checkboxes and 
> (dynamic) FormBeans result in false values
> 
> 
> Hi,
> 
> I'm quite new to the ML, struts and ASF projects, so please
> escuse my poor english (i'm french). If it is not the way to
> submit a solve the bug please redirect me. :)
> 
> I have a solution for the chekbox missing in the request
> when not checked : the taglib should générate after the
> checkbox input tag an hidden input tag wich have the same
> name than the chekbox. So if the checkbox is checked, the
> first value in the request is 'yes' (from the checkbox) and
> ignore the second one, else the value of parameter is 'no'
> from the hidden input.
> 
> I hope it helps. I'll submit to the list a patch for the
> taglib on monday if needed.
> 
> Regards
> Emmanuel
> 
> Emmanuel Feller
> Cap Gemini Ernst & Young
> +33 2 51 17 35 00 poste 37 16
> +33 6 23 34 63 39
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org