RE: How to set a component's value in validator method

2005-04-06 Thread Srikanth Madarapu
Thanks for the information. -Original Message-From: Heath Borders [mailto:[EMAIL PROTECTED]Sent: Tuesday, April 05, 2005 4:14 PMTo: MyFaces DiscussionSubject: Re: How to set a component's value in validator method Yes. Inside your validator, you receive an instance of the

RE: How to set a component's value in validator method

2005-04-05 Thread Srikanth Madarapu
Is this possible to do ? -Original Message- From: Srikanth Madarapu Sent: Tuesday, April 05, 2005 10:58 AM To: My Faces Discussion (E-mail) Subject: How to set a component's value in validator method Hi I need to set a value (to null) for a component in the validator method. If

Re: How to set a component's value in validator method

2005-04-05 Thread Heath Borders
Yes. Inside your validator, you receive an instance of the UIComponent whose value is being validated. Just cast the UIComponent to an EditableValueHolder and set its value to null. During the Update Model Values phase, the null value will get propagated up to your bean. However, if another