Dont want fields to be reset in the case of error
Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul
RE: Dont want fields to be reset in the case of error
Hi Paul, Thats a requirement.The error has to be shown with the original wrongly filled fields. The reset is ok if there is no error.Then the same ActionForm is used for new entries. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Benedict Sent: Monday, September 17, 2007 1:54 PM To: Struts Users Mailing List Subject: Re: Dont want fields to be reset in the case of error Why don't you want the reset? On 9/17/07, Asthana, Rahul [EMAIL PROTECTED] wrote: Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dont want fields to be reset in the case of error
I found a non elegant way of doing it. Was wondering if it was possible to do it through config. But this will do for now, Thanks.. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 2:00 PM To: Struts Users Mailing List Subject: RE: Dont want fields to be reset in the case of error Hi Paul, Thats a requirement.The error has to be shown with the original wrongly filled fields. The reset is ok if there is no error.Then the same ActionForm is used for new entries. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Benedict Sent: Monday, September 17, 2007 1:54 PM To: Struts Users Mailing List Subject: Re: Dont want fields to be reset in the case of error Why don't you want the reset? On 9/17/07, Asthana, Rahul [EMAIL PROTECTED] wrote: Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dont want fields to be reset in the case of error
Asthana, There is nothing wrong with the technical requirement, but not invoking reset() smells to me. The use of reset() is to reset the form before population. Afterwards, the values of the request are populated. Why doesn't this work for you? If there are wrong values, they will be there after population. Paul On 9/17/07, Asthana, Rahul [EMAIL PROTECTED] wrote: I found a non elegant way of doing it. Was wondering if it was possible to do it through config. But this will do for now, Thanks.. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 2:00 PM To: Struts Users Mailing List Subject: RE: Dont want fields to be reset in the case of error Hi Paul, Thats a requirement.The error has to be shown with the original wrongly filled fields. The reset is ok if there is no error.Then the same ActionForm is used for new entries. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Benedict Sent: Monday, September 17, 2007 1:54 PM To: Struts Users Mailing List Subject: Re: Dont want fields to be reset in the case of error Why don't you want the reset? On 9/17/07, Asthana, Rahul [EMAIL PROTECTED] wrote: Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dont want fields to be reset in the case of error
Why don't you want the reset? On 9/17/07, Asthana, Rahul [EMAIL PROTECTED] wrote: Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul