How can I make reset button to remove displayed validation errors and clear the fields, at the same time. Now, the reset button, seems to ONLY clear the fields,when there are no errors displayed, but does not do anything, when errors are being displayed. Any help..!
Hi Junilu, Your suggestion did help me, to think of a work around. As you said, I did use a submit button to get the functionality I need. I am checking the value of hidden variable in the FormBean for "Reset" in the validate method and clearing the fields and errors. Thanks alot. Praveen.
I am having similar problem and I can't make Reset button as submit. If u make more than one submit buttons on page, then first one in the list becomes default for all ENTER hits. In my case, 'Reset' followed by 'Search'. That would mean, user enters data, hits enter and rather than performing valid operation, form gets Reset. So, is there any other way to handle it... Thanks