Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Nightly Builds
-
None
-
None
-
None
-
Operating System: other
Platform: Other
-
29151
Description
Struts validators explicitly pass in an ActionErrors instance to allow
validators to record their own results. While I'm not convinced that is a good
idea for most validations, it does allow a validator to register validation
errors for other fields than the one currently being processed.
For example, perhaps there was an XML schema validator to validate an XML
element. The schema validator is going to report multiple validator errors all
at the same time. This patch would allow that validator to register those
errors even though Validator hasn't processed or has already processed those fields.
The patch puts both the current Form and ValidationResults in the Validator's
parameters allowing a validator to specify those objects to be passed in as a
parameter during validation.