Is it possible to make JPA validate an input right after a user types in anything?
I am using EclipseLink.
I dont want to wait for JPA to persist for the validation to kick in.
What I want to happen:
- I have a class
- I have multiple attributes
- Many attributes are gonna be input fields in the view
- I want to validate 2 (or more) attributes right after a user makes an input.
I am following this recipe: http://musingsofaprogrammingaddict.blogspot.no/2010/02/generic-class-level-constraint-for-bean.html
The problem is that the recipe stops before any validation happens.</div