| Author |
white spaces are not recognizing in validate()
|
indu iyengar
Ranch Hand
Joined: Jul 30, 2010
Posts: 115
|
|
Hi
am using but here this is not validating for any whitespaces, just validating for empty field.
Is there any other way to recognize white spaces between a word?
|
thanks ,
Indu
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14669
|
|
|
rejectIfEmptyOrWhitespace checks for null, "", or only whitespaces (e.g. " "). You'll have to make your own Validator for anything else.
|
[My Blog]
All roads lead to JavaRanch
|
 |
indu iyengar
Ranch Hand
Joined: Jul 30, 2010
Posts: 115
|
|
|
Is it wont check if I give some thing like val idator? (space between val and idator)
|
 |
Prasad Krishnegowda
Ranch Hand
Joined: Apr 25, 2010
Posts: 503
|
|
indu iyengar wrote:Is it wont check if I give some thing like val idator? (space between val and idator)
No, it won't check for this condition. You have to write your own validation technique for this..
|
Regards, Prasad
SCJP 5 (93%)
|
 |
 |
|
|
subject: white spaces are not recognizing in validate()
|
|
|