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

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

    Attachment:     (was: 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
>          Components: tapestry-beanvalidator
>            Reporter: Alex Lumpov
>              Labels: features
>         Attachments: alex.patch
>
>
> I suppose this variant of class 
> org.apache.tapestry5.internal.beanvalidator.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

        

Reply via email to