Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 72212 invoked from network); 12 Feb 2009 13:42:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 13:42:03 -0000 Received: (qmail 78771 invoked by uid 500); 12 Feb 2009 13:40:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78749 invoked by uid 500); 12 Feb 2009 13:40:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 78738 invoked by uid 99); 12 Feb 2009 13:40:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 05:40:40 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [193.252.22.128] (HELO smtp5.freeserve.com) (193.252.22.128) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 13:40:31 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3408.me.freeserve.com (SMTP Server) with ESMTP id 805781C00084 for ; Thu, 12 Feb 2009 14:40:09 +0100 (CET) Received: from smtp.homeinbox.net (unknown [91.109.142.188]) by mwinf3408.me.freeserve.com (SMTP Server) with ESMTP id 4B86C1C00083 for ; Thu, 12 Feb 2009 14:40:09 +0100 (CET) X-ME-UUID: 20090212134009309.4B86C1C00083@mwinf3408.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by smtp.homeinbox.net (Postfix) with ESMTP id B7E151A48C2 for ; Thu, 12 Feb 2009 13:39:58 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from smtp.homeinbox.net ([127.0.0.1]) by localhost (server01.dev.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03+utnf8Pz5z for ; Thu, 12 Feb 2009 13:39:55 +0000 (GMT) Received: from macbook.local (unknown [213.1.210.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.homeinbox.net (Postfix) with ESMTPSA id 3B08C1A40B2 for ; Thu, 12 Feb 2009 13:39:55 +0000 (GMT) Message-ID: <499426A5.5080303@apache.org> Date: Thu, 12 Feb 2009 13:39:49 +0000 From: Mark Thomas User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Problem with lib version jasper-el.jar on tomcat 6.0.18 References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org ruben rubens wrote: > Hello, > > I found a posible bug or weird performance with tomcat 6.0.18. I'm using > faces for MVC, when the context is setting the values for bean atributes > from an empty input (input with null value) I don�t finally get a null value > as I expect, I finally get a primitive default value. For example, If I bind > my java.lang.Float to an input text and I do not fill any value in it, I get > a 0.0 value in my Float atribute, and I expected null (like the original > value). > > The libraries versions that I�m using are listed below: > > > javax.faces > jsf-api > 1.2_04 > > > javax.faces > jsf-impl > 1.2_04 > > > In tomcat 6.0.13 I�m not getting the same behaivour. I get that I expect. I > think the problem is with this jar: jasper-el.jar. > > Is there an explanation for these? In my opinion, I don�t think is a good > performance get a value from a form that nobody has put there. That behaviour is required by the EL spec (It was a bug that was fixed.). You can disable the spec compliant behaviour by using org.apache.el.parser.COERCE_TO_ZERO=false Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org