Issue Details (XML | Word | Printable)

Key: VALIDATOR-137
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Don Brown
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Validator

Allow validators to register errors for multiple fields

Created: 22/May/04 06:13 AM   Updated: 12/Nov/07 07:25 PM
Return to search
Component/s: None
Affects Version/s: Nightly Builds
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File patches.diff 2004-05-22 06:14 AM Don Brown 3 kB
Environment:
Operating System: other
Platform: Other

Bugzilla Id: 29151


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Don Brown added a comment - 22/May/04 06:14 AM
Created an attachment (id=11632)
Patches in diff -u format

Ted Husted added a comment - 08/Jun/04 09:56 PM
Thanks, Don!

Henri Yandell made changes - 16/May/06 09:41 AM
Field Original Value New Value
issue.field.bugzillaimportkey 29151 12341469
Henri Yandell made changes - 16/May/06 11:55 AM
Key COM-1317 VALIDATOR-137
Component/s Validator [ 12311135 ]
Affects Version/s Nightly Builds [ 12311648 ]
Project Commons [ 12310458 ] Commons Validator [ 12310494 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Henri Yandell made changes - 16/May/06 12:25 PM
Affects Version/s Nightly Builds [ 12311748 ]
Henri Yandell made changes - 12/Nov/07 07:25 PM
Status Resolved [ 5 ] Closed [ 6 ]