Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.5
-
None
Description
A warning should be issued if there is no accessor for the property being validated. For example, an action 'FooAction' without a getFoo method would fail a required field validation for the field foo as OGNL will simply return null.
This problem is a bit annoying when working with WebWork, as validation will fail without any clues that the problem lies within the Action. As it isn't really obvious from the documentation that the validator uses the accessors from the action instead of the properties being passed, this caused me to wonder for quite a while what was going wrong.