Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-397

FormAction.doValidate() isn't called when there is no validator configured

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.3
    • Fix Version/s: None
    • Component/s: Core: Actions
    • Labels:
      None

      Description

      FormAction.doValidate() isn't called when there is no validator configured.

      This is no problem for the default implementation of FormAction.doValidate(), which would only invoke configured validators.

      In the case of a custom doValidate() implementation (which is encouraged in the JavaDoc of validate()) it is very likely that you won't configure a Validator object. Neverless, you'd like your custom validation to be executed.

      In other words, not bindAndValidate() should decide wether to call any Validators (strip "if (getValidator() != null"), but the default implementation of doValidate(). I can provide a patch if you'd like.

        Attachments

          Activity

            People

            • Assignee:
              kdonald Keith Donald
              Reporter:
              goonie Andreas Schildbach
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: