I am working on a plugin where i need to integrate Bean Validator with the underlying Framework and it seems to work fine except at one point where i am strucked.
Plugin will take care to provide bridge with any Bean Validator who adhere to JSR303 specifications (Hibernate-Validator,Apache Bean validator) Once there is some Constraints violation error i need to know what kind of violation it was like was it a 1. Filed-Level Constraint 2. Property Level 3. Class Level and based on this i need to build Error messages and need to do some other work. Is there any way to find out the type of Constraints violation from ConstraintViolation<?> so that i can do post processing to prepare things to display on UI? I know the question is not specific to BVal implementation but since BVal also adhere to JSR303 Specifications so i believe it will be same with all and providing integration with BVal is in my TO-DO list. -- With Regards Umesh Awasthi http://www.travellingrants.com/
