Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 12548 invoked from network); 15 Sep 2009 10:16:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 10:16:25 -0000 Received: (qmail 70061 invoked by uid 500); 15 Sep 2009 10:16:24 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 69973 invoked by uid 500); 15 Sep 2009 10:16:24 -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 69965 invoked by uid 99); 15 Sep 2009 10:16:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 10:16:24 +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; Tue, 15 Sep 2009 10:16:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1BD0B234C495 for ; Tue, 15 Sep 2009 03:15:58 -0700 (PDT) Message-ID: <748521942.1253009758111.JavaMail.jira@brutus> Date: Tue, 15 Sep 2009 03:15:58 -0700 (PDT) From: "Martin Schaaf (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-1545) UISelectOne validation fails with custom converter In-Reply-To: <31195321.1172589785651.JavaMail.jira@brutus> 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/MYFACES-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755441#action_12755441 ] Martin Schaaf commented on MYFACES-1545: ---------------------------------------- I have the same issue with the following converter javax.faces.convert.LongConverter specified. The following code works with myfaces 1.1.4 but no longer in 1.1.7. bean.value is a Long object. The select item values are created as Strings and get compared to Longs. This code works in myfaces 1.1.4 with and without specifiyng a converter and does no longer work in version 1.1.7 with or without a converter. > UISelectOne validation fails with custom converter > -------------------------------------------------- > > Key: MYFACES-1545 > URL: https://issues.apache.org/jira/browse/MYFACES-1545 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 1.1.5 > Reporter: Dainius Vaznys > > This seems to be closely related with MYFACES-1328. > I have a Converted configured with a UISelectOne which converts between strings and enum values, i.e. getAsObject() returns an Enum instance. After the convertion takes place UISelectOne.validateValue() is invoked to check if the Enum instance is among select items. This code definitely does not work: > Object itemValue = item.getValue(); > if (value==itemValue || value.equals(itemValue)) > { > return true; > } > as it tries to match an Enum instance against a string. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.