I have a form enclosed in a zone. When I submit the form with my register button, it's being handled by method: private Object onSelectedFromRegister() { ... return zone; }
The default behaviour seems to be that when the zone gets re-rendered the UI form fields retain their submitted post values client side. What I'd like to be able to do is, in my register handler (see above), i'd like to null out all of the form fields next time the zone re-rerenders. In my form I have a text field component that's bound to a page property that has no persistence. So it's just like a regular instance variable in my page class. How can I (javaside) reset the form (or just the textfield) w/o writing javascript? I've tried injecting the form and the textfield components, but found no useful methods there. And nulling out the instance variable does nothing in this regard either. any suggestions/ clues much appreciated. thanks