Hi,
is there any tuturial on using metadata API on Hibernate Validator 4.0 please ? My goal is to read property constraints on given bean (from my custom jsp tags) and add those constraints to input fields (for example set maxlength attribute on text input field) - also some caching of already read data is needed. I think about creating bean metadata cache on application start (using spring framework) and then store read data there - that would be not difficult I think, but I already have configured Validator instance (using spring) and it must somehow read those metadata too, so my question is: can I use Validator instance or any helper class working with Validator instance to read those metadata instead of creating custom bean metadata cache?
Thank you for any help. Best regards, Pavla Novakova
|