[
https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jochen Kemnade updated TAP5-1968:
---------------------------------
Labels: features patch (was: features)
> 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, patch
> 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 was sent by Atlassian JIRA
(v6.2#6252)