You really *MUST* post these questions to the user list where there are more people to help you.
But, yes, you can write a Javascript that clears the fields. Anything you want to do "client-side" is going to involve Javascript, and is technically outside the scope of the framework. Colin Sharples wrote: > > Apologies for following up a user-type question with another one, but in > the interests of (brain) bandwith I don't read the user list. Please > forgive me, I won't do it again :-) > > If this approach is used, populating the form bean before the form is > displayed, then it means that hitting a "Reset" button will, rather than > clearing the form, clear out any user modifications and re-fill the form > with the values that the bean was populated with in the previous step. > > Now, I know that this is the expected, or even required behaviour from the > point of view of HTML. However, when I had one site going through testing, > the tester complained that a particular form was broken because the reset > button kept on filling in the values instead of clearing them. In this > particular case, it was clear that what was required was not a "reset" > button, but a "clear all the fields" button. > > So, getting to the point (eventually), I know that it's possible to do this > server-side, by having a button which will just cause the form bean to have > all its properties set to null and redirect back to the input page. > However, is there a way to do this client-side? > > Regards > > Colin M Sharples > I/T Architect > IBM Global Services New Zealand > > email: [EMAIL PROTECTED] > phone: 64-4-5769853 > mobile: 64-21-402085 > fax: 64-4-5765616 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
