• Post Reply Bookmark Topic Watch Topic
  • New Topic

field validator Vs Non-field validator  RSS feed

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Field validators are much convinient and allow us to group multiple validators to be applied to same field in one <field> element. Then what are the situations where non-field validators come in handy over field validators?
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Non-field validators can be used for validations across fields, like if you want to check if the password and confirm password are not the same...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!