Is there reason for explicitely adding val:validate ? Why not add validation to all forms if class is anotated? What about validation groups?
Hello,
the main reason is that we need a injection point for our code (it could be the <html> element for all forms).
On the other hand, I see a value on being able to trigger validation optionally in a particular form, but I see your point.
Regards.
Log in to post a comment.
Is there reason for explicitely adding val:validate ? Why not add validation to all forms if class is anotated? What about validation groups?
Hello,
the main reason is that we need a injection point for our code (it could be the <html> element for all forms).
On the other hand, I see a value on being able to trigger validation optionally in a particular form, but I see your point.
Regards.