Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 444F76706 for ; Tue, 19 Jul 2011 10:00:37 +0000 (UTC) Received: (qmail 50154 invoked by uid 500); 19 Jul 2011 10:00:36 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 49855 invoked by uid 500); 19 Jul 2011 10:00:25 -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 49833 invoked by uid 99); 19 Jul 2011 10:00:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 10:00:22 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 10:00:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 03C1443D6C for ; Tue, 19 Jul 2011 09:59:58 +0000 (UTC) Date: Tue, 19 Jul 2011 09:59:58 +0000 (UTC) From: "mbm67 (JIRA)" To: dev@myfaces.apache.org Message-ID: <526270488.3354.1311069598011.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <11190851.6141293151305567.JavaMail.jira@thor> Subject: [jira] [Commented] (MYFACES-3008) javax.faces.component.UIInput.getConvertedValue converts empty String to null even when javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false 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-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067599#comment-13067599 ] mbm67 commented on MYFACES-3008: -------------------------------- The same problem seems to be present also in MyFaces 2.1.1. Need a patch as soon as possible. > javax.faces.component.UIInput.getConvertedValue converts empty String to null even when javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false > ------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MYFACES-3008 > URL: https://issues.apache.org/jira/browse/MYFACES-3008 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.0.2, 2.0.3 > Environment: Glassfish v3, myfaces core 2.0.2 > Reporter: Jay Palaniappan > > javax.faces.component.UIInput.getConvertedValue converts empty String to null even when javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false. > When I dug deeper I narrowed down the issue to the method org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUISelectOneValue where if the submitted value is an empty string the submittedvalue is set to null. I also understand that this logic was put in place to solve the issue no. 1759 for version 1.2.2 but in JSF 2.0 the empty string to null conversion is handled globally using context parameter javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira