Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 9990 invoked from network); 29 Apr 2010 07:58:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Apr 2010 07:58:19 -0000 Received: (qmail 75162 invoked by uid 500); 29 Apr 2010 07:58:19 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 75116 invoked by uid 500); 29 Apr 2010 07:58:19 -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 75109 invoked by uid 99); 29 Apr 2010 07:58:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Apr 2010 07:58:19 +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; Thu, 29 Apr 2010 07:58:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3T7vtvB024793 for ; Thu, 29 Apr 2010 07:57:55 GMT Message-ID: <27052335.1431272527875167.JavaMail.jira@thor> Date: Thu, 29 Apr 2010 03:57:55 -0400 (EDT) From: "Michael Heinen (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (TOMAHAWK-1494) HtmlMessageRenderer evaluates value expressions of not rendered components In-Reply-To: <1579484990.553731267188868029.JavaMail.jira@brutus.apache.org> 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 [ https://issues.apache.org/jira/browse/TOMAHAWK-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862123#action_12862123 ] Michael Heinen commented on TOMAHAWK-1494: ------------------------------------------ Leonardo, this sounds even better to me. Perfect. Moreover this should also improve performance a little bit in cases of many outputLabels because the ValueExpressions are not evaluated if not needed. Thumbs up ;-) > HtmlMessageRenderer evaluates value expressions of not rendered components > -------------------------------------------------------------------------- > > Key: TOMAHAWK-1494 > URL: https://issues.apache.org/jira/browse/TOMAHAWK-1494 > Project: MyFaces Tomahawk > Issue Type: Bug > Components: Message(s) > Affects Versions: 1.1.9 > Environment: tomahawk12_1.1.9, > myfaces 1.2.8, > richfaces 3.3.3 > jsp > Reporter: Michael Heinen > Assignee: Leonardo Uribe > Priority: Critical > > I produced a validation error in an inputText field. This field ha a corresponding outputLabel component. > Now HtmlMessageRenderer creates a Map with all inputLabels, even if they are not rendered at all. > This can result in exceptions because the value attribute of not rendered and not initialized components is evaluated! > Sample content: > > > > > Method MyController.getTestme() is called if messages are rendered although the parent div component has attribute rendered=false > proposed fix: > if (root.isRendered()) > should be added to method createOutputLabelMap. > Components should not be checked recursively if the root is not rendered at all. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.