Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Group Class support to JSR-303 Validation using @Valid [SPR-7062] #11722

Closed
spring-projects-issues opened this issue Apr 1, 2010 · 2 comments
Closed
Assignees
Labels
has: votes-jira in: web status: duplicate type: enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Apr 1, 2010

Jon Daly opened SPR-7062 and commented

Would like a replacement for @Valid that could take group classes for JSR-303 validation. Right now only the default group class of JSR-303 Constraints is run for the @Valid.

Please refer to this forum thread for more detail: http://forum.springsource.org/showthread.php?p=292566


Reference URL: http://forum.springsource.org/showthread.php?p=292566

Issue Links:

  • SWF-1453 Support JSR303 Validation Groups for Webflow View States ("is depended on by")
  • #11039 Support for validation groups in @Valid used by spring MVC ("duplicates")

18 votes, 14 watchers

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Apr 1, 2010

recoco zhang commented

Anticipate this feature.
Now if I use @Valid with JSR-303 Constraints group , Spring cant binding failure messages to BindingResult. If only @Valid with Default group, Spring can binding failure messages to BindingResult.
So for the complex situation such as a create controller and a update controller which have different constraints group, it's very inconvenient.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Aug 4, 2011

Giljae Joo(주길재) commented

Reference is http://giljae.com/blog/13090537

@spring-projects-issues spring-projects-issues added type: enhancement has: votes-jira status: duplicate in: web labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has: votes-jira in: web status: duplicate type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants