RE: Why is the reset method called when I submit the form?

2003-01-25 Thread Loren Hall
-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

RE: Why is the reset method called when I submit the form?

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

Re: Why is the reset method called when I submit the form?

2003-01-24 Thread Gemes Tibor
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

RE: Why is the reset method called when I submit the form?

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

Re: Why is the reset method called when I submit the form?

2003-01-24 Thread Gemes Tibor
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

RE: Why is the reset method called when I submit the form?

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

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
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

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
[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

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
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

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Andrew Hill
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

RE: Why is the reset method called when I submit the form?

2003-01-24 Thread Craig R. McClanahan
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

RE: Why is the reset method called when I submit the form?

2003-01-23 Thread Loren Hall
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

Re: Why is the reset method called when I submit the form?

2003-01-23 Thread Nicolas De Loof
: 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

RE: Why is the reset method called when I submit the form?

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

RE: Why is the reset method called when I submit the form?

2003-01-23 Thread Jarnot Voytek Contr AU HQ/SC
' 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

RE: Why is the reset method called when I submit the form?

2003-01-23 Thread Jarnot Voytek Contr AU HQ/SC
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

Re: Why is the reset method called when I submit the form?

2003-01-23 Thread Nicolas De Loof
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.

Re: Why is the reset method called when I submit the form?

2003-01-23 Thread Jeremy Cavagnolo
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

RE: Why is the reset method called when I submit the form?

2003-01-23 Thread Marco Tedone
[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

Re: Why is the reset method called when I submit the form?

2003-01-23 Thread Dennis Muhlestein
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

Why is the reset method called when I submit the form?

2003-01-22 Thread Jeremy Cavagnolo
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]

RE: Why is the reset method called when I submit the form?

2003-01-22 Thread pqin
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