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:09:34 UTC

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

Alex Lumpov created TAP5-1968:
---------------------------------

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


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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Description: 
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 {};
}

  was:
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 {};
}

    
> 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: BeanFieldValidator.java
>
>
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Description: 
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 {};
}

  was:
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 {};
}

    
> 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: BeanFieldValidator.java
>
>
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Description: 
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 {};
}

  was:
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 {};
}

    
> 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: BeanFieldValidator.java
>
>
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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
>            Reporter: Alex Lumpov
>              Labels: features
>
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Description: 
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 {};
}

  was:
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 {};
}

    
> 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: BeanFieldValidator.java
>
>
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Component/s: tapestry-beanvalidator
    
> 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: 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: alex.patch

Unfortunately I have not found a file with Howard code format style settings for NetBeans or Eclipse.
Therefore the patch has turned out big
                
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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
>            Reporter: Alex Lumpov
>              Labels: features
>
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: alex.patch

Unfortunately I have not found a file with Howard code format style settings for NetBeans or Eclipse.
Therefore the patch has turned out big
                
> 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Component/s: tapestry-beanvalidator
    
> 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: 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Alex Lumpov (JIRA)" <ji...@apache.org>.
     [ 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