You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "David J. M. Karlsen (JIRA)" <ji...@apache.org> on 2010/10/25 22:58:20 UTC
[jira] Created: (BVAL-83) Support groups on @Valid in method/return
validation
Support groups on @Valid in method/return validation
----------------------------------------------------
Key: BVAL-83
URL: https://issues.apache.org/jira/browse/BVAL-83
Project: BeanValidation
Issue Type: New Feature
Components: jsr303
Affects Versions: 0.2-incubating
Reporter: David J. M. Karlsen
See https://jira.springframework.org/browse/SPR-6373 .
This would be a brilliant feature.
Often I find myself sending beans which are half-way in their process as method arguments - and differenciating which fields to validate with a group would fit like a hand in a glove.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Updated] (BVAL-83) Support groups on @Valid in
method/return validation
Posted by "Matt Benson (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Benson updated BVAL-83:
----------------------------
Component/s: (was: jsr303)
method validation
> Support groups on @Valid in method/return validation
> ----------------------------------------------------
>
> Key: BVAL-83
> URL: https://issues.apache.org/jira/browse/BVAL-83
> Project: BeanValidation
> Issue Type: New Feature
> Components: method validation
> Affects Versions: 0.2-incubating
> Reporter: David J. M. Karlsen
> Attachments: bvalaspect.zip
>
>
> See https://jira.springframework.org/browse/SPR-6373 .
> This would be a brilliant feature.
> Often I find myself sending beans which are half-way in their process as method arguments - and differenciating which fields to validate with a group would fit like a hand in a glove.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (BVAL-83) Support groups on @Valid in
method/return validation
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970101#action_12970101 ]
Roman Stumm commented on BVAL-83:
---------------------------------
Hi Matt,
OK, you are right. We could add another Annotation instead, but the "Validate" annotation seemed to fit as well and the only thing of jsr303 in bval-core is the existance of a "Class[] groups", no logic or anything else.
The main problem is, HOW to support this during validation....
> Support groups on @Valid in method/return validation
> ----------------------------------------------------
>
> Key: BVAL-83
> URL: https://issues.apache.org/jira/browse/BVAL-83
> Project: BeanValidation
> Issue Type: New Feature
> Components: jsr303
> Affects Versions: 0.2-incubating
> Reporter: David J. M. Karlsen
>
> See https://jira.springframework.org/browse/SPR-6373 .
> This would be a brilliant feature.
> Often I find myself sending beans which are half-way in their process as method arguments - and differenciating which fields to validate with a group would fit like a hand in a glove.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (BVAL-83) Support groups on @Valid in method/return
validation
Posted by "David J. M. Karlsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David J. M. Karlsen updated BVAL-83:
------------------------------------
Attachment: bvalaspect.zip
Attaching the annotation I created myself plus an aspect which shows how it uses it.
I used to different group annotations to support different groups on method entry and return value.
> Support groups on @Valid in method/return validation
> ----------------------------------------------------
>
> Key: BVAL-83
> URL: https://issues.apache.org/jira/browse/BVAL-83
> Project: BeanValidation
> Issue Type: New Feature
> Components: jsr303
> Affects Versions: 0.2-incubating
> Reporter: David J. M. Karlsen
> Attachments: bvalaspect.zip
>
>
> See https://jira.springframework.org/browse/SPR-6373 .
> This would be a brilliant feature.
> Often I find myself sending beans which are half-way in their process as method arguments - and differenciating which fields to validate with a group would fit like a hand in a glove.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-83) Support groups on @Valid in
method/return validation
Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969785#action_12969785 ]
Matt Benson commented on BVAL-83:
---------------------------------
Do you have no concern about adding a jsr303 concept to bval-core?
> Support groups on @Valid in method/return validation
> ----------------------------------------------------
>
> Key: BVAL-83
> URL: https://issues.apache.org/jira/browse/BVAL-83
> Project: BeanValidation
> Issue Type: New Feature
> Components: jsr303
> Affects Versions: 0.2-incubating
> Reporter: David J. M. Karlsen
>
> See https://jira.springframework.org/browse/SPR-6373 .
> This would be a brilliant feature.
> Often I find myself sending beans which are half-way in their process as method arguments - and differenciating which fields to validate with a group would fit like a hand in a glove.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (BVAL-83) Support groups on @Valid in
method/return validation
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969666#action_12969666 ]
Roman Stumm commented on BVAL-83:
---------------------------------
What about using
* org.apache.bval.Validate
as an equal alternative to
* javax.validation.Valid?
We can add "groups" to Validate then?
> Support groups on @Valid in method/return validation
> ----------------------------------------------------
>
> Key: BVAL-83
> URL: https://issues.apache.org/jira/browse/BVAL-83
> Project: BeanValidation
> Issue Type: New Feature
> Components: jsr303
> Affects Versions: 0.2-incubating
> Reporter: David J. M. Karlsen
>
> See https://jira.springframework.org/browse/SPR-6373 .
> This would be a brilliant feature.
> Often I find myself sending beans which are half-way in their process as method arguments - and differenciating which fields to validate with a group would fit like a hand in a glove.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (BVAL-83) Support groups on @Valid in
method/return validation
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969666#action_12969666 ]
Roman Stumm edited comment on BVAL-83 at 12/9/10 3:58 AM:
----------------------------------------------------------
What about using
* org.apache.bval.Validate
as an equal alternative for
* javax.validation.Valid?
We can add "groups" to Validate then?
was (Author: romanstumm):
What about using
* org.apache.bval.Validate
as an equal alternative to
* javax.validation.Valid?
We can add "groups" to Validate then?
> Support groups on @Valid in method/return validation
> ----------------------------------------------------
>
> Key: BVAL-83
> URL: https://issues.apache.org/jira/browse/BVAL-83
> Project: BeanValidation
> Issue Type: New Feature
> Components: jsr303
> Affects Versions: 0.2-incubating
> Reporter: David J. M. Karlsen
>
> See https://jira.springframework.org/browse/SPR-6373 .
> This would be a brilliant feature.
> Often I find myself sending beans which are half-way in their process as method arguments - and differenciating which fields to validate with a group would fit like a hand in a glove.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.