Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 92604 invoked from network); 12 Feb 2010 16:00:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 16:00:50 -0000 Received: (qmail 85833 invoked by uid 500); 12 Feb 2010 16:00:49 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 85742 invoked by uid 500); 12 Feb 2010 16:00:49 -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 85453 invoked by uid 99); 12 Feb 2010 16:00:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 16:00:48 +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, 12 Feb 2010 16:00:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D2A01234C052 for ; Fri, 12 Feb 2010 08:00:27 -0800 (PST) Message-ID: <539138567.234141265990427861.JavaMail.jira@brutus.apache.org> Date: Fri, 12 Feb 2010 16:00:27 +0000 (UTC) From: "Jakob Korherr (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2552) TagValueExpression.getType() returns null if the property in the managed bean is null and the expression points to a facelets composite component attribute In-Reply-To: <1723318258.233101265985268576.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/MYFACES-2552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833040#action_12833040 ] Jakob Korherr commented on MYFACES-2552: ---------------------------------------- One solution for this would be to return a special type != Map when resolving #{cc.attrs} and providing a special ELResolver for this type. Then we could use the original ValueExpressions of the attributes from the composite component to determine the type. Of course this would totally break the spec!!! What are your opinions about that? Is this too unimportant to make such great changes or should we consult the EG and maybe change this behavior? Maybe in the next major release (2.1)? > TagValueExpression.getType() returns null if the property in the managed bean is null and the expression points to a facelets composite component attribute > ----------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MYFACES-2552 > URL: https://issues.apache.org/jira/browse/MYFACES-2552 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Affects Versions: 2.0.0-beta-2 > Reporter: Jakob Korherr > Assignee: Jakob Korherr > > if you have a facelets composite component with an attribute "test" that points to a property in a managed bean (e.g. #{myBean.property}) which is currently null and you refer to that attribute in the implementation via #{cc.attrs.test} you can get the current value (null) or set a new value but you cannot get the type of the property (e.g. String[]). However if the property in the managed bean is non-null you can get the type. > For example: > > > > > > > > > --> calling #{cc.attrs.test}.getType() will fail if #{cc.attrs.test} resolves to null, but will work if #{cc.attrs.test} resolves to some valid value. > This currently results in a NullPointerException in _SharedRendererUtils.getConvertedUISelectManyValue(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.