[jira] [Commented] (TAP5-520) Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)

2012-06-10 Thread DI Florian Hackenberger (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13292497#comment-13292497
 ] 

DI Florian Hackenberger commented on TAP5-520:
--

@Howard: Could you please re-open. This bug is an issue with ValidatorMacro 
definitions, as there does not seem to be a way to put them into the message 
catalogue.

 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.
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] Commented: (TAP5-520) Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas)

2009-03-04 Thread Howard M. Lewis Ship (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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.