vydehi vajanapally wrote:May i know the advantage of using validate() instead of validation.xml
Easier
unit testing and re-use.
Which one will take high precendence if i am doing the validations in all the above ways for the same field/ form element.
Honestly, I don't remember... I *think* it's XML, annotations, then validate, but could be completely wrong--it'd be easier to just test.