Thanks Matt, Really strange, I tried with same before sending my query and was getting nothing. Will try again to see if i am doing something wrong.
Thanks Umesh On Sun, Oct 13, 2013 at 10:58 PM, Matt Benson <[email protected]> wrote: > ConstraintDescriptor#getAttributes()? > > Matt > On Oct 13, 2013 10:11 AM, "Umesh Awasthi" <[email protected]> wrote: > >> 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/ >> >> >> > -- With Regards Umesh Awasthi http://www.travellingrants.com/
