Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: Release 1.3
-
Fix Version/s: None
-
Component/s: Validation
-
Labels:None
Description
Here's some proposed classes to allow support for validation using Hibernate validation annotations. It refactors OgnlActionBeanPropertyBinder.java (as a new class to allow both implementations to exist) to allow a Hibernate validator subclass to extend it.
Any class ending in "1_3" is a class where I would have made changes to the existing class bundled with stripes v1.3. This allows the classes to be dropped in and run in parallel with the current OGNL binder. The class "DefaultActionBeanPropertyBinder" is the replacement for the existing "OgnlActionBeanPropertyBinder". You should be able to specify this class in the web.xml and have everything work as before. The class "HibernateActionBeanPropertyBinder" is the subclass that also does Hibernate validation in addition to any validation that would have been performed in the parent class.
Here's the java files.