Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 27037 invoked from network); 29 Jan 2010 18:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2010 18:58:57 -0000 Received: (qmail 88053 invoked by uid 500); 29 Jan 2010 18:58:56 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 87980 invoked by uid 500); 29 Jan 2010 18:58:56 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 87972 invoked by uid 99); 29 Jan 2010 18:58:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 18:58:56 +0000 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; Fri, 29 Jan 2010 18:58:55 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A48E7234C4C0 for ; Fri, 29 Jan 2010 10:58:34 -0800 (PST) Message-ID: <1660417717.134541264791514673.JavaMail.jira@brutus.apache.org> Date: Fri, 29 Jan 2010 18:58:34 +0000 (UTC) From: "Gerhard Petracek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Resolved: (EXTVAL-82) Add the EmptyValueAwareValidationStrategy annotation to the Length and Pattern Annotations In-Reply-To: <222399446.3601264165761639.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EXTVAL-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek resolved EXTVAL-82. ------------------------------------ Resolution: Won't Fix the initial reason for the marker was to avoid such an implicit required validation. use-case: a property is not required but if users provide a value it has to fulfill e.g. a minimal length. the scenario described in this issue is easy to solve via an additional @Required constraint at the property or a custom validation strategy (as replacement for the default one) which hosts the mentioned marker. > Add the EmptyValueAwareValidationStrategy annotation to the Length and Pattern Annotations > ------------------------------------------------------------------------------------------ > > Key: EXTVAL-82 > URL: https://issues.apache.org/jira/browse/EXTVAL-82 > Project: MyFaces Extensions Validator > Issue Type: Improvement > Components: Property Validation > Affects Versions: 1.2.3-SNAPSHOT, 2.0.3-SNAPSHOT, 1.1.3-SNAPSHOT > Reporter: Rudy De Busscher > Priority: Minor > > Adding the EmptyValueAwareValidationStrategy allows in JSF 2.0 that Length and Pattern validations are triggered (with the javax.faces.VALIDATE_EMPTY_FIELDS parameter set). > They will cause a validation error with an empty string (Length annotation with minimum set or Pattern) so the Required annotation is no longer needed. > Tested it out with ExtVal 2.0.3-SNAPSHOT and Myfaces 2.0.0-SNAPHOT (of 21/01) and it works as expected. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.