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

Konstantin Miklevskiy closed TAP5-520.
--------------------------------------

    Resolution: Duplicate

Found an older issue with the same problem.
It was closed with:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/TextField.html

See in the end of the page:
cardnumber-regexp-message=Credit Card numbers consist of 16 digits
cardnumber-regexp=\\d{4}(\\-?\\d{4}){3}

In properties file there are no limitations on regexp syntax.

> Regexp validator parse error
> ----------------------------
>
>                 Key: TAP5-520
>                 URL: https://issues.apache.org/jira/browse/TAP5-520
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Konstantin Miklevskiy
>
> Try adding this field to your form:
> @Validate("regexp=^([a-zA-Z0-9]{2,4})+$")
> private String somefield;
> Page will fail to render with exception saying:
> Render queue error in BeginRender[mypage.somefield]: Failure reading 
> parameter 'validate' of component mypage.somefield: Coercion of 
> ^([a-zA-Z0-9]{2 to type java.util.regex.Pattern (via String --> 
> java.util.regex.Pattern) failed: Unclosed counted closure near index 15 
> ^([a-zA-Z0-9]{2 ^

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

Reply via email to