You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Anthony Hong <an...@gmail.com> on 2006/06/07 07:51:08 UTC

How to make reset command button clear all form fields

Hi all,

Jsf has a command button with type="reset" that can reset current form
components to the latest state.

How can I make this reset button to clear all fields with empty value
under this form.
Is it the only way I have to write a action method and clear fields in
page bean one by one?

And Can I re-new a page bean when I required? If can, how to achieve this

-- 

Anthony Hong