Anthony,

Try writing a custom validator ... something like IsEmptyValidator.

Dennis Byrne

>-----Original Message-----
>From: Anthony Hong [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, July 4, 2006 12:09 AM
>To: 'MyFaces Discussion'
>Subject: required attribute of h:inputText consider space as valid value
>
>h:inputText can set required attribute to true, that means this field
>is a mandatory fields.
>
>But it does not trim string before validation. So an empty space also
>a valid value for input text with required attribute.
>
>How to solve this problem, that I do not have to add trim string
>function in javascript one by one. Any idea?
>
>Thanks
>-- 
>
>Anthony Hong
>


Reply via email to