<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=spring_user" rel="nofollow">Karthik Gurumurthy</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6369?redirect=false" rel="nofollow">SPR-6369</a></strong> and commented</p>
<p dir="auto">I want to be able to specify the JSR303 validation group when specifying <code class="notranslate">@Valid</code> in <code class="notranslate">@Controller-s</code>.<br>
I don't want the validation to be run against the default group every time.</p>
<p dir="auto">I guess currently I can inject a javax.validation.Validator reference in the <code class="notranslate">@Controller</code> and handle this programmatically. Would be nice if this can be driven through an annotation as well.</p>
<p dir="auto">But <code class="notranslate">@Valid</code> doesn't support a "group" attribute though.<br>
What do you guys think?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 RC2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099327" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11039" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11039/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11039">#11039</a> Support for validation groups in <code class="notranslate">@Valid</code> used by spring MVC (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">2 votes, 2 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pavla" rel="nofollow">Pavla Nováková</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6373?redirect=false" rel="nofollow">SPR-6373</a></strong> and commented</p>
<p dir="auto">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:</p>
<p dir="auto"><code class="notranslate">@RequestMapping</code>("/foo", method=RequestMethod.POST)<br>
public void processFoo(<code class="notranslate">@Valid</code>(groups={Default.class, MyValidationGroup.class}) Foo foo) { ... }</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 RC2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099286" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11035" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11035/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11035">#11035</a> Support for 'groups' in addition to <code class="notranslate">@Valid</code> for <code class="notranslate">@MVC</code> Controllers (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398104276" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11722" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11722/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11722">#11722</a> Add Group Class support to JSR-303 Validation using <code class="notranslate">@Valid</code> (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109410" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12504" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12504/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12504">#12504</a> ValidationUtils: add support for Validation group interfaces</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/00133179df27fc8b2c8c3b5d9377985279122691/hovercard" href="https://github.com/spring-projects/spring-framework/commit/00133179df27fc8b2c8c3b5d9377985279122691"><tt>0013317</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/49a2aaf023e2da5efb0ef49785499053ebd42c61/hovercard" href="https://github.com/spring-projects/spring-framework/commit/49a2aaf023e2da5efb0ef49785499053ebd42c61"><tt>49a2aaf</tt></a></p>
<p dir="auto">54 votes, 53 watchers</p>