Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-6373

Support for validation groups in @Valid used by spring MVC

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 3.0 RC2
    • Fix Version/s: 3.1 GA
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      It would be useful to be able to use validation groups in spring MVC as specified by JSR-303. With the improvement it should be possible to write something like:

      @RequestMapping("/foo", method=RequestMethod.POST)
      public void processFoo(@Valid(groups=

      {Default.class, MyValidationGroup.class}

      ) Foo foo)

      { ... }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                pavla Pavla Nováková
                Last updater:
                Spring Issuemaster
              • Votes:
                54 Vote for this issue
                Watchers:
                53 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  40 weeks, 1 day ago