Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 76439 invoked from network); 5 Mar 2009 07:44:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 07:44:17 -0000 Received: (qmail 15856 invoked by uid 500); 5 Mar 2009 07:44:17 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 15823 invoked by uid 500); 5 Mar 2009 07:44:17 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 15814 invoked by uid 99); 5 Mar 2009 07:44:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 23:44:17 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 07:44:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1716B234C48D for ; Wed, 4 Mar 2009 23:43:56 -0800 (PST) Message-ID: <777922855.1236239036079.JavaMail.jira@brutus> Date: Wed, 4 Mar 2009 23:43:56 -0800 (PST) From: "Igor Drobiazko (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Closed: (TAP5-520) Using regular expressions with the @Validate annotation causes odd parse errors if the regexp includes common characters (including commas) In-Reply-To: <171049288.1234864679494.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on 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.