Re: reset problem for a dynavalidator form

2008-02-02 Thread Ashima Beri
nterceptor does; by checking for the presence of error messages. > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View th

Re: reset problem for a dynavalidator form

2008-02-02 Thread Ashima Beri
nt to provide a button the user can click to reset the >>> form, a 'submit' button and round trip through your action is the >>> correct way to do so. As you've realized, a 'reset' button just tells >>> the browser to restore the input values it received the last time the >

Re: reset problem for a dynavalidator form

2008-02-02 Thread Laurie Harper
On a normal form submit to an action with validation, if validation fails, the request is forwarded to the input result and execute() is bypassed, yes. So, you have two options: 1) as Dave reiterated, you can put your form reset logic in validate(); have your validate method detect the when th

Re: reset problem for a dynavalidator form

2008-02-02 Thread Dave Newton
--- Ashima Beri <[EMAIL PROTECTED]> wrote: > I read in struts flow explanation that Action class is only called if the > validations are passed through. > I dont know what other way to adopt. What Laurie is saying is that you can implement a validate() method and call super.validate() before you d

Re: reset problem for a dynavalidator form

2008-02-02 Thread Ashima Beri
------------------ > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/reset-problem-for-a-dynavalidator-form-tp15244933p15245650.ht

Re: reset problem for a dynavalidator form

2008-02-02 Thread Laurie Harper
Ashima Beri wrote: Hi, I am trying to reset a validator form after the form is submitted and a few of the validations have failed. Reset button used in the form clears out fields changed only since the time the form is loaded. That is it does just the client side reset. One way that i figured out

reset problem for a dynavalidator form

2008-02-02 Thread Ashima Beri
context: http://www.nabble.com/reset-problem-for-a-dynavalidator-form-tp15244933p15244933.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail