You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Konstantin Miklevskiy (JIRA)" <ji...@apache.org> on 2009/02/17 10:57:59 UTC
[jira] Created: (TAP5-520) Regexp validator parse error
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.
[jira] Commented: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678903#action_12678903 ]
Howard M. Lewis Ship commented on TAP5-520:
-------------------------------------------
I'd like to see this closed as "invalid" or "won't fix" ... but that's up to Igor as he's taken ownership.
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
>
> 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.
[jira] Closed: (TAP5-520) Regexp validator parse error
Posted by "Konstantin Miklevskiy (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (TAP5-520) Regexp validator parse error
Posted by "Mike D Pilsbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675156#action_12675156 ]
Mike D Pilsbury commented on TAP5-520:
--------------------------------------
I meant to create a bug for this a couple of months ago but forgot, so I'm glad that someone else has encountered it.
Even if it could be worked around in this particular regex, I think that the restriction still needs to be addressed; it's not always going to be easy to work around. Perhaps a comma in the regex could be allowed to be escaped in some way?
> 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.
[jira] Commented: (TAP5-520) Regexp validator parse error
Posted by "Mike D Pilsbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675156#action_12675156 ]
Mike D Pilsbury commented on TAP5-520:
--------------------------------------
I meant to create a bug for this a couple of months ago but forgot, so I'm glad that someone else has encountered it.
Even if it could be worked around in this particular regex, I think that the restriction still needs to be addressed; it's not always going to be easy to work around. Perhaps a comma in the regex could be allowed to be escaped in some way?
> 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.
[jira] Closed: (TAP5-520) Regexp validator parse error
Posted by "Konstantin Miklevskiy (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (TAP5-520) Regexp validator parse error
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674162#action_12674162 ]
Ulrich Stärk commented on TAP5-520:
-----------------------------------
I bet this is because tapestry thinks that after the comma, a new validator will follow. Can't you rewrite your regexp to not contain the {2,4} constraint? Is that necessary at all with the + quantifier in place?
> 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.
[jira] Updated: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAP5-520:
--------------------------------------
Priority: Minor (was: Major)
Summary: Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas) (was: Regexp validator parse error)
Workaround: put the regular expression in your message catalog, i.e.
somefield-regexp=^([a-zA-Z0-9]{2,4})+$
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
>
> 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.
[jira] Commented: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678903#action_12678903 ]
Howard M. Lewis Ship commented on TAP5-520:
-------------------------------------------
I'd like to see this closed as "invalid" or "won't fix" ... but that's up to Igor as he's taken ownership.
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
>
> 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.
[jira] Updated: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAP5-520:
--------------------------------------
Priority: Minor (was: Major)
Summary: Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas) (was: Regexp validator parse error)
Workaround: put the regular expression in your message catalog, i.e.
somefield-regexp=^([a-zA-Z0-9]{2,4})+$
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
>
> 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.
[jira] Closed: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko closed TAP5-520.
-------------------------------
Resolution: Fixed
Fix Version/s: 5.1.0.1
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
> Fix For: 5.1.0.1
>
>
> 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.
[jira] Reopened: (TAP5-520) Regexp validator parse error
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko reopened TAP5-520:
---------------------------------
Assignee: Igor Drobiazko
Reopened. This is still a bug. One should be able to use commas inside @Validate("regexpr=********"). I will have a look into this.
> 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
> Assignee: Igor Drobiazko
>
> 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.
[jira] Reopened: (TAP5-520) Regexp validator parse error
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko reopened TAP5-520:
---------------------------------
Assignee: Igor Drobiazko
Reopened. This is still a bug. One should be able to use commas inside @Validate("regexpr=********"). I will have a look into this.
> 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
> Assignee: Igor Drobiazko
>
> 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.
[jira] Commented: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678992#action_12678992 ]
Igor Drobiazko commented on TAP5-520:
-------------------------------------
Why "invalid" or "won't fix"? This is a bug. I have already a fix using positive and negative lookahead. Was just thinking about test cases. Shall I commit the fix?
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
>
> 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.
[jira] Commented: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678992#action_12678992 ]
Igor Drobiazko commented on TAP5-520:
-------------------------------------
Why "invalid" or "won't fix"? This is a bug. I have already a fix using positive and negative lookahead. Was just thinking about test cases. Shall I commit the fix?
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
>
> 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.
[jira] Commented: (TAP5-520) Regexp validator parse error
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674162#action_12674162 ]
Ulrich Stärk commented on TAP5-520:
-----------------------------------
I bet this is because tapestry thinks that after the comma, a new validator will follow. Can't you rewrite your regexp to not contain the {2,4} constraint? Is that necessary at all with the + quantifier in place?
> 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.
[jira] Closed: (TAP5-520) Using regular expressions with the
@Validate annotation causes odd parse errors if the regexp includes common
characters (including commas)
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko closed TAP5-520.
-------------------------------
Resolution: Fixed
Fix Version/s: 5.1.0.1
> Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Igor Drobiazko
> Priority: Minor
> Fix For: 5.1.0.1
>
>
> 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.