Subject: Re: Using Reset with Checkboxes
From: Jose Quinteiro <[EMAIL PROTECTED]>
===
Javadoc sez:
Reset all bean properties to their default state. This method is called
before the properties are repopulated by the controller servlet.
The default implementation does nothing. Subc
Does this work? According to the tag documentation, Struts
passes the string "on" when a checkbox is checked, and reset with "off."
This is what I am doing and it has been working flawlessly.
According to the Struts API, reset() gets called just before your
mapping.findForward() in your action
Subject: Re: Using Reset with Checkboxes
From: "Ken Holzer" <[EMAIL PROTECTED]>
===
Thanks for the information Jose.
Another question is when and where does the reset get called?
Ken
"Jose Quinteiro" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTE
Subject: Re: Using Reset with Checkboxes
From: Jose Quinteiro <[EMAIL PROTECTED]>
===
You should check for the checkbox parameter(s) in the request, and set
it(them) to false if they are not present.
For example, if you have a form called "Foo" with a boolean property
called
-
From: "Struts Newsgroup (@Basebeans.com)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 2:25 PM
Subject: Using Reset with Checkboxes
> Subject: Using Reset with Checkboxes
> From: "Ken Holzer" <[EMAIL PROTECTED]>
> ===
&
Subject: Using Reset with Checkboxes
From: "Ken Holzer" <[EMAIL PROTECTED]>
===
Hi All,
I am trying to understand how and when to use the reset with checkboxes.
I have seen posting that say when using checkboxes on forms you must reset
their value to false. When should this be
6 matches
Mail list logo