Hi Anthony,

Perhaps this link may help?
http://wiki.apache.org/myfaces/ClearInputComponents

HTH,

Fintan

-----Original Message-----
From: Anthony Hong [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 06:51
To: MyFaces Discussion
Subject: 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


* ** *** ** * ** *** ** * ** *** ** * 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. 
Any views or opinions presented are solely those of the author, and do not 
necessarily  represent those of ESB. 
If you have received this email in error please notify the sender. 
 
Although ESB scans e-mail and attachments for viruses, it does not guarantee 
that either are virus-free and accepts no liability for any damage sustained 
as a result of viruses. 
 
* ** *** ** * ** *** ** * ** *** ** *

Reply via email to