Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 11745 invoked from network); 3 Dec 2008 16:18:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 16:18:06 -0000 Received: (qmail 86514 invoked by uid 500); 3 Dec 2008 16:18:17 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 86225 invoked by uid 500); 3 Dec 2008 16:18:17 -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 86213 invoked by uid 99); 3 Dec 2008 16:18:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 08:18:16 -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; Wed, 03 Dec 2008 16:16:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5BCCB234C2AA for ; Wed, 3 Dec 2008 08:17:44 -0800 (PST) Message-ID: <58140050.1228321064375.JavaMail.jira@brutus> Date: Wed, 3 Dec 2008 08:17:44 -0800 (PST) From: "Tomasz Bech (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (TOMAHAWK-1377) validateRegExpr doesnt support value binding in patter property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org validateRegExpr doesnt support value binding in patter property --------------------------------------------------------------- Key: TOMAHAWK-1377 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1377 Project: MyFaces Tomahawk Issue Type: Bug Components: Validators Affects Versions: 1.1.7 Reporter: Tomasz Bech Priority: Critical As from version 1.1.7 validateRegExpr tag desn't support value binding in pattern field. ValidateRegExprTag.java Version 1.1.6 has: protected Validator createValidator() throws JspException { FacesContext facesContext = FacesContext.getCurrentInstance(); setValidatorId(RegExprValidator.VALIDATOR_ID); RegExprValidator validator = (RegExprValidator)super.createValidator(); if (_pattern != null) { if (UIComponentTag.isValueReference(_pattern)) { ValueBinding vb = facesContext.getApplication().createValueBinding(_pattern); validator.setPattern(new String(vb.getValue(facesContext).toString())); } else { validator.setPattern(_pattern); } } return validator; } Version 1.1.7 has: protected Validator createValidator() throws JspException { FacesContext facesContext = FacesContext.getCurrentInstance(); setValidatorId("org.apache.myfaces.validator.RegExpr"); org.apache.myfaces.custom.regexprvalidator.RegExprValidator validator = (org.apache.myfaces.custom.regexprvalidator.RegExprValidator)super.createValidator(); if (_pattern != null) { validator.setPattern(_pattern); } return validator; } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.