• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

white spaces are not recognizing in validate()

 
indu iyengar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rejectIfEmptyOrWhitespace checks for null, "", or only whitespaces (e.g. " "). You'll have to make your own Validator for anything else.
 
indu iyengar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it wont check if I give some thing like val idator? (space between val and idator)
 
Prasad Krishnegowda
Ranch Hand
Posts: 671
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic