Hi together,
plan to edit my application an replace the default
jsf validation implementation with a beanvalidation.
Read some articles and tutotials, all look very easy of course , so i re-implement one of my jsf-validatiors as BeanValidator
ValidatorInterface
Implementation of course:
Usage in my (hibernate) entity bean
Now the Problem.
I exeptected that the validation takes place the first time when jsf recives the formular commit and update the data model (at the same time the "normal" jsf validator makes his work),
but that seems a misunderstanding. The validator only becomes checked when hibernate try to persist the entity and at this position i get only a stacktrace because jsf doesn't seems to recognize
the "ConstraintViolationException" when it gets thrown by the backend.
Some ideas what i am doing/understanding wrong?
Thanks for helping
Dom