Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 33948 invoked from network); 4 Jan 2011 19:30:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2011 19:30:09 -0000 Received: (qmail 21463 invoked by uid 500); 4 Jan 2011 19:30:09 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 21423 invoked by uid 500); 4 Jan 2011 19:30:09 -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 21415 invoked by uid 99); 4 Jan 2011 19:30:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 19:30:09 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 19:30:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p04JTjTB009660 for ; Tue, 4 Jan 2011 19:29:45 GMT Message-ID: <6113845.140241294169385741.JavaMail.jira@thor> Date: Tue, 4 Jan 2011 14:29:45 -0500 (EST) From: "Kentaro Kinebuchi (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (TRINIDAD-1993) Setting tr:validateByteLength maximum property as an EL expression results in an error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Setting tr:validateByteLength maximum property as an EL expression results in an error -------------------------------------------------------------------------------------- Key: TRINIDAD-1993 URL: https://issues.apache.org/jira/browse/TRINIDAD-1993 Project: MyFaces Trinidad Issue Type: Bug Components: Components Affects Versions: 2.0.0.3-core Environment: Linux x86 Reporter: Kentaro Kinebuchi Attachments: bug10432287.patch The stack trace is given below. The error is happening because the maximum property in org.apache.myfaces.trinidad.validator.ByteLengthValidator does not follow convention and is called "maximumBytes" instead of "maximum". This is also causing issues with af:validateByteLength. java.lang.IllegalArgumentException: Invalid attribute name maximum at org.apache.myfaces.trinidad.validator.ValidatorUtils._getPropertyKey(ValidatorUtils.java:116) at org.apache.myfaces.trinidad.validator.ValidatorUtils.setValueExpression(ValidatorUtils.java:80) at org.apache.myfaces.trinidad.validator.ByteLengthValidator.setValueExpression(ByteLengthValidator.java:288) at org.apache.myfaces.trinidadinternal.taglib.validator.ValidateByteLengthTag._setProperties(ValidateByteLengthTag.java:82) at org.apache.myfaces.trinidadinternal.taglib.validator.ValidateByteLengthTag.createValidator(ValidateByteLengthTag.java:71) at org.apache.myfaces.trinidad.webapp.TrinidadValidatorELTag.doStartTag(TrinidadValidatorELTag.java:54) at jsp_servlet.__test1_jspx._jspx___tag4(__test1_jspx.java:293) at jsp_servlet.__test1_jspx._jspx___tag3(__test1_jspx.java:256) at jsp_servlet.__test1_jspx._jspx___tag2(__test1_jspx.java:205) at jsp_servlet.__test1_jspx._jspx___tag1(__test1_jspx.java:155) at jsp_servlet.__test1_jspx._jspx___tag0(__test1_jspx.java:104) at jsp_servlet.__test1_jspx._jspService(__test1_jspx.java:65) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:12 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.