Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 59CD49A14 for ; Fri, 3 Feb 2012 21:15:24 +0000 (UTC) Received: (qmail 45684 invoked by uid 500); 3 Feb 2012 21:15:24 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 45593 invoked by uid 500); 3 Feb 2012 21:15:23 -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 45569 invoked by uid 99); 3 Feb 2012 21:15:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 21:15:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 21:15:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D5EE018BD29 for ; Fri, 3 Feb 2012 21:15:00 +0000 (UTC) Date: Fri, 3 Feb 2012 21:15:00 +0000 (UTC) From: =?utf-8?Q?Martin_Ko=C4=8D=C3=AD_=28Commented=29_=28JIRA=29?= To: dev@myfaces.apache.org Message-ID: <1621668567.9043.1328303700878.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <756967516.8957.1328302375056.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MYFACES-3459) RegexValidator does not provide label and pattern for first usage of RegexValidator.NOT_MATCHED MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-3459?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 200046#comment-13200046 ]=20 Martin Ko=C4=8D=C3=AD commented on MYFACES-3459: -------------------------------------- few observations: # java.util.regex.Pattern.matcher(CharSequence) support CharSequence and we= can easily support it too -> change instanceof check to "(value instanceo= f CharSequence)" # this instanceof check indicates disagreement between local value (convert= ed) and type expected in validator - created '{1}: Validation Error: Value = not according to pattern ''{0}''' is not suitable for this (mojarra thows C= astClassExpception in the middle of validator and that is also not very pro= per) # javax.faces.validator.RegexValidator.PATTERN_NOT_SET and RegexValidator.M= ATCH_EXCEPTION are completely missing in .properties files - or I can't fin= d them =20 > RegexValidator does not provide label and pattern for first usage of Rege= xValidator.NOT_MATCHED > -------------------------------------------------------------------------= ---------------------- > > Key: MYFACES-3459 > URL: https://issues.apache.org/jira/browse/MYFACES-3459 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 2.1.5 > Environment: myfaces trunk > Reporter: Martin Ko=C4=8D=C3=AD > Assignee: Martin Ko=C4=8D=C3=AD > Priority: Trivial > > RegexValidator uses javax.faces.validator.RegexValidator.NOT_MATCHED 2x: > javax.faces.validator.RegexValidator.NOT_MATCHED=3D the passed value is n= ot a String, or when the pattern does not match the passed value. > the first usage for" if (value instanceof String)" check does not provide= args for {0} {1} in message. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira