You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Alex Lumpov (JIRA)" <ji...@apache.org> on 2012/07/06 19:11:34 UTC

[jira] [Updated] (TAP5-1968) Java Bean Validation (JSR 303) : Javascript support for Constraint composition

     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Lumpov updated TAP5-1968:
------------------------------

    Attachment: BeanFieldValidator.java
    
> Java Bean Validation (JSR 303) : Javascript support for Constraint composition
> ------------------------------------------------------------------------------
>
>                 Key: TAP5-1968
>                 URL: https://issues.apache.org/jira/browse/TAP5-1968
>             Project: Tapestry 5
>          Issue Type: Improvement
>            Reporter: Alex Lumpov
>              Labels: features
>         Attachments: BeanFieldValidator.java
>
>
> I suppose this variant of class BeanFieldValidator can be useful for support of such annotations (like this) by javascript engine.
> @Target({METHOD, FIELD, ANNOTATION_TYPE, PARAMETER})
> @Retention(RetentionPolicy.RUNTIME)
> @Documented
> @Constraint(validatedBy = {})
> @ReportAsSingleViolation
> @Pattern(regexp = "^\\d{16}|\\d{19}$")
> public @interface CreditCardNumber {
> 	String message() default "must have 16 or 19 digits";
> 	Class<?>[] groups() default {};
> 	Class<? extends Payload>[] payload() default {};
> }

--
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