Re: required attribute of h:inputText consider space as valid value

2006-07-03 Thread Dennis Byrne
sEmptyValidator. >> >> 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:inputTe

Re: required attribute of h:inputText consider space as valid value

2006-07-03 Thread Anthony Hong
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. > >

Re: required attribute of h:inputText consider space as valid value

2006-07-03 Thread Dennis Byrne
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:inputTex

required attribute of h:inputText consider space as valid value

2006-07-03 Thread Anthony Hong
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 ja