Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2191

Make validateAnnotatedMethodOnly the default and support client-side method-only validations

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5
    • Plugin - CodeBehind
    • None

    Description

      A common use case for validation annotations is to use different validations per action method. However, in 2.0.x, the default is to combine the validations. A better default would be "true".

      <interceptor-ref name="validation">
      <param name="validateAnnotatedMethodOnly">true</param>
      <param name="excludeMethods">input,back,cancel,browse</param>
      </interceptor-ref>

      Also, per-method client-side validation does not seem to be supported.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            husted Ted Husted
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment