-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5:44 AM
To: Struts Users Mailing List
Subject: RE: Why is the reset method called when I submit the form?
Are you trying to chain your actions?
-Original Message-
From: Loren Hall [mailto
The reset() method in the DynaActionForm class is called at
the same time
than the ActionForm's one is, with a little difference. The
former cannot be
empty, as it initializes the passed parameters to their
original value(which
could be the one passed by the configuration file or the
2003. janur 24. 10:54 dtummal ROSSEL Olivier ezt rtad:
I said that SOMETIMES it is very annoying.
You have the request and the mapping in the request, so you can decide on each
reset() written by you that you want it happen or not.
I had only one form for which I didn't need the reset
I said that SOMETIMES it is very annoying.
You have the request and the mapping in the request, so you
can decide on each
reset() written by you that you want it happen or not.
I had only one form for which I didn't need the reset
sometimes. So I did the
following:
public void
2003. janur 24. 11:18 dtummal ROSSEL Olivier ezt rtad:
The problem is not to customize the formBean to your needs.
The problem is that you cannot control the reset-populate-validate
cycle.
Well, I am wrong, you can customize the validate step!!!
In fact, my solution is to add a
snip
The problem is that you cannot control the reset-populate-validate
cycle.
/snip
You can if you override the RequestProcessor :-)
Ive actually had to do something similar in regards to form
population and
form instantiation , in which I defined my own ActionMapping
class to
PROTECTED]]
Sent: January 22, 2003 2:53 PM
To: [EMAIL PROTECTED]
Subject: Why is the reset method called when I submit the form?
It seems that when I submit my form, the reset method is called before
the validate method. I am using struts 1.0.2.
Any insight?
-Jeremy
--
To unsubscribe, e-mail
[mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 January 2003 18:52
To: '[EMAIL PROTECTED]'; Struts Users Mailing List
Subject: RE: Why is the reset method called when I submit the form?
snip
The problem is that you cannot control the reset-populate-validate
cycle.
/snip
You can if you override
is the reset method called when I submit the form?
I said that SOMETIMES it is very annoying.
You have the request and the mapping in the request, so you
can decide on each
reset() written by you that you want it happen or not.
I had only one form for which I didn't need the reset
sometimes. So I
Are you trying to chain your actions?
-Original Message-
From: Loren Hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 23 January 2003 21:40
To: Struts Users Mailing List
Subject: RE: Why is the reset method called when I submit the form?
I had similar behavior that I found odd
On Fri, 24 Jan 2003, ROSSEL Olivier wrote:
My question is: would it be interesting to add a resetForm attribute
to the action tag. It would be optionnal, with default value to true.
Gurus seem not to like this idea.
My feeling is that adding this option would tempt many users (especially
role of validating to prevent unruly, non-conforming data
from being saved?
Loren
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Why is the reset method called when I submit the form?
I
: Wednesday, January 22, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Why is the reset method called when I submit the form?
I guess struts calls reset in order to save all your input and then does
the
validation
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows
1. Struts find the formbean on scope or creates a new one
2. formbean.reset() is called to set all properties to default values
3. formbean is populated from request parameters
4. formbean.validate() is called (if configured)
Which class makes step 2? ActionServlet? RequestProcessor?
And step
'
Subject: RE: Why is the reset method called when I submit the form?
1. Struts find the formbean on scope or creates a new one
2. formbean.reset() is called to set all properties to
default values
3. formbean is populated from request parameters
4. formbean.validate() is called
To: 'Struts Users Mailing List'
Subject: RE: Why is the reset method called when I submit the form?
processPopulate(...) in RequestProcessor does 1 and 2,
processValidate(...)
does 4.
--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.
-Original Message-
From
A long time ago, someone suggested to add a control
in the struts-config.xml so the reset() is not always mandatory
but can be disabled in the struts-config.xml.
May be it sounds like an anti-pattern from the gurus,
but to me, it sounds like a very interesting option,
for real-life apps.
data
from being saved?
Loren
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Why is the reset method called when I submit the form?
I guess struts calls reset
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 6:10 PM
To: 'Marco Tedone'
Subject: RE: Why is the reset method called when I submit the form?
Olivier, which are the matters with the reset() method's invocation?
What happens when you manage one single formBean across
several pages
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 1:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Why is the reset method called when I submit the form?
I guess struts calls reset in order to save all your input and then does
the
validation
It seems that when I submit my form, the reset method is called before
the validate method. I am using struts 1.0.2.
Any insight?
-Jeremy
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Why is the reset method called when I submit the form?
It seems that when I submit my form, the reset method is called before
the validate method. I am using struts 1.0.2.
Any insight?
-Jeremy
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional
22 matches
Mail list logo