Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

field validator Vs Non-field validator

 
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: 9509
22
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic