tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] Closed: (TAP5-645) Regexp Validator missbehaviour with comma in regular expression
Date Tue, 28 Apr 2009 16:59:32 GMT

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

Howard M. Lewis Ship closed TAP5-645.
-------------------------------------

    Resolution: Duplicate

> Regexp Validator missbehaviour with comma in regular expression
> ---------------------------------------------------------------
>
>                 Key: TAP5-645
>                 URL: https://issues.apache.org/jira/browse/TAP5-645
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Stefan Esterer
>            Priority: Minor
>
> The Regexp Validator has problems with expressions containg a comma.
> e.g.
> @Validate("required,regexp=\\d{1\\,3}(\\.\\d{1\\,2})?")
> String getFoo();
> This regular expression does not work with the regexp validator, because the ValidateAnnotationConstraintGenerator
splits the annotation value with ",".
> "return Arrays.asList(annotation.value().split(","));"
> Concequence is a uncomplete input string ( from index 0 to the first occurence of the
",") for the coercer from String.class to Pattern.class.
> This causes a java.util.regex.PatternSyntaxException.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message