[
https://issues.apache.org/jira/browse/TAP5-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029775#comment-13029775
]
Kai Lilleby commented on TAP5-1108:
-----------------------------------
current impl of FieldValidatorSourceImpl does not allow regexp expressions
containing ','. i.e. the expression regexp2=^\\s*\\d{0,2}\\s*$ fails with
exception:
Caused by: java.lang.RuntimeException: Unexpected character '2' at position 19
of input string: regexp=^\\s*\\d{0,2}\\s*$
at
org.apache.tapestry5.internal.services.FieldValidatorSourceImpl.parseError(FieldValidatorSourceImpl.java:425)
this is only the case when using the binding-way
> The string specified by @Validate is not parsed the same way as a validate:
> binding
> -----------------------------------------------------------------------------------
>
> Key: TAP5-1108
> URL: https://issues.apache.org/jira/browse/TAP5-1108
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2.0
> Reporter: Howard M. Lewis Ship
>
> Some features, such as validator macros, are now tied explicitly to the
> validate: binding. The parsing code should be extracted and shared between
> FieldValidatorSourceImpl and ValidateAnnotationConstraintGenerator.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira