Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-147

PATCH: Allow validators to have access to form bean

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 11541

    Description

      Right now, a validator only has access to the bean that is being validated,
      especially if the bean is an indexed property. This patch adds a new
      recognized parameter signature in the validation
      method, "org.apache.struts.action.DynaActionForm", which allows a validator
      method to request the DynaForm that is being validated. This will allow cross-
      field validators to be written. In fact, I have a new
      validator, "requiredif", that depends on this, and which I will check in once
      this is accepted.

      Attachments

        Activity

          People

            Unassigned Unassigned
            turner@blackbear.com James Turner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: