• Post Reply Bookmark Topic Watch Topic
  • New Topic

validation framework

 
padmaratna kamble
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends.......
please tell me, i am using validation framework, and
i am validating UserName field in validation.xml and validate method of
validatorForm. is UserName field validate two times ?. if yes then in which order ? and if NO then which one validate field,
i mean either validate method execute first or validation.xml execute first.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The validate method will be called first. If you do not call super.validate then the rules in validation.xml will never be executed. If you do call super.validate then the order depends if this call shows up as the first line in your method or the last.

- Brent
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!