Hi All,

Not sure how relevant this question is. I am wondering is there way i can
access properties passed to constraints

for e.g  i have following constraints defined

@Size(min=10, max=10, message="mobile.number")

in my message resource, i have following entry
mobile.number=Mobile number should be between {min} and {max}.

framework i am using capable enough to search through hierarchy and find
value for given property  "mobile.number".

For simple cases it is working fine but if i want to have place holder in
my message file like {max} or {min}, it is not working as i am not able to
access those values from Bean Validator.

I have gone through the Validation API specifications (Constraints Meta
data request API), but not able to find any information.

Is there a generic way i can access those values from the constraints so
that i can pass them to underlying resource bundle resolver of framework?

Thanks
Umesh

-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Reply via email to