Uploaded image for project: 'XWork'
  1. XWork
  2. XW-989

A warning should be issued if there is no accessor for the property being validated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.5
    • 1.1
    • Validators
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jfim Jean-Francois Im
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: