Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 7506 invoked from network); 14 Mar 2007 20:50:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 20:50:49 -0000 Received: (qmail 5831 invoked by uid 500); 14 Mar 2007 20:50:55 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 5777 invoked by uid 500); 14 Mar 2007 20:50:55 -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 5716 invoked by uid 99); 14 Mar 2007 20:50:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 13:50:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 13:50:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B1805714086 for ; Wed, 14 Mar 2007 13:50:10 -0700 (PDT) Message-ID: <13153865.1173905410724.JavaMail.jira@brutus> Date: Wed, 14 Mar 2007 13:50:10 -0700 (PDT) From: "Mike Kienenberger (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-790) Select Menus bound to Integer value with calculated el expression in itemValue don't work In-Reply-To: <1037322282.1131380540297.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480921 ] Mike Kienenberger commented on MYFACES-790: ------------------------------------------- Carsten, It is your responsiblity as the programmer to insure that the type of itemValue is the correct type. Conversion only happens between itemLabels and itemValues, not between itemValues and your backing bean methods. This is a different issue than the original reported problem (where it looks like the bug is that the EL expression parser is returning a Long when maybe it should be returning an Integer). > Select Menus bound to Integer value with calculated el expression in itemValue don't work > ----------------------------------------------------------------------------------------- > > Key: MYFACES-790 > URL: https://issues.apache.org/jira/browse/MYFACES-790 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 1.1.1 > Environment: MyFaces 1.1.1, WebSphere 5.1.2, Windows > Reporter: Thomas Winkler > Assigned To: Manfred Geiler > > Assume the following code: > > > > The problem here is, that the itemValue-property will be evaluated to a value of type java.lang.Long. The submitted value will be of type java.lang.Integer. When both values are the same, e.g. 9, the test in the class _SelectItemsUtil, line 68 > integerValue.equals(longValue) > will fail and we get an error. > Suggestion for problem solution: > The problem may be resolved according 4.1.13.2 of JSF Spec 1.1 by trying to convert the EL calculated value to the data type of the parent component's type. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.