Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 12190 invoked from network); 18 Jul 2007 22:27:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2007 22:27:44 -0000 Received: (qmail 37510 invoked by uid 500); 18 Jul 2007 22:27:28 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 37465 invoked by uid 500); 18 Jul 2007 22:27:27 -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 37454 invoked by uid 99); 18 Jul 2007 22:27:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2007 15:27:27 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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, 18 Jul 2007 15:27:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A32A27141EE for ; Wed, 18 Jul 2007 15:27:04 -0700 (PDT) Message-ID: <17782912.1184797624666.JavaMail.jira@brutus> Date: Wed, 18 Jul 2007 15:27:04 -0700 (PDT) From: "Guido Dubois (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (TOBAGO-335) and Double object in backing bean In-Reply-To: <21698913.1174737092740.JavaMail.jira@brutus> 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/TOBAGO-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513742 ] Guido Dubois commented on TOBAGO-335: ------------------------------------- This works with empty fields! The error message corresponds to an other field of simple double type. > and Double object in backing bean > ----------------------------------------------------------------- > > Key: TOBAGO-335 > URL: https://issues.apache.org/jira/browse/TOBAGO-335 > Project: MyFaces Tobago > Issue Type: Bug > Components: Core > Affects Versions: 1.0.10 > Reporter: Guido Dubois > > If you need to clear an input field, the easiest way is to use an object type like String, Date or Double. So you can set it simply to null and the field will be cleared. But in case of Double there will be a problem with . > In RI there is the same problem. See issue https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=286 for more details. > This workaround helps: > > > > ... > private Number f1; > private Double f1double; > ... > public Number getF1() { > return f1double; > } > public void setF1(Number f1) { > this.f1double = f1.doubleValue(); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.