Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 89972 invoked from network); 9 Aug 2006 15:01:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 15:01:29 -0000 Received: (qmail 16078 invoked by uid 500); 9 Aug 2006 15:01:27 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 15851 invoked by uid 500); 9 Aug 2006 15:01:27 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 15840 invoked by uid 99); 9 Aug 2006 15:01:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 08:01:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.13.58.165] (HELO caraldi.com) (195.13.58.165) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 08:01:26 -0700 Received: from vision.anyware (10.21.96-84.rev.gaoland.net [84.96.21.10]) by caraldi.com (Postfix) with ESMTP id 86AF260E1 for ; Wed, 9 Aug 2006 17:01:04 +0200 (CEST) Received: by vision.anyware (Postfix, from userid 1021) id 072DF6379; Wed, 9 Aug 2006 17:01:04 +0200 (CEST) Date: Wed, 9 Aug 2006 17:01:04 +0200 From: Jean-Baptiste Quenot To: dev@cocoon.apache.org Subject: Re: cforms incompatibility in 2.1.9 (was [Fwd: [jira] Reopened: (COCOON-1687) [PATCH] JXPATHBinding : when saving the form, remove xml elements if the value of the widget is null]) Message-ID: <20060809150104.GJ2151@vision.anyware> Mail-Followup-To: dev@cocoon.apache.org References: <44D8471B.6090007@outerthought.org> <20060808102220.GC55043@vision.anyware> <44D871BB.9080603@outerthought.org> <20060808132559.GB18285@vision.anyware> <44D9E254.6000109@outerthought.org> <20060809133301.GI2151@vision.anyware> <44D9F1F3.4000800@outerthought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <44D9F1F3.4000800@outerthought.org> User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N * Marc Portier: > The argumentation of the fix, namely to make the value-binding > remove an element upon 'save' seems, currently, to be that this > avoids after re-'load' some weird formatting result (from "" to > "1/1/1970") in the i18n transformer caused by some external > date-parser suggested in a patch that isn't applied? You may be right that the date problem may not happen with SimpleDateFormat because it is lenient by default. This has nothing to do with the i18n transformer however, but with the FormattingDateConvertor. Now it's up to you to decide whether empty string is garbage or not. For me, it is. Then your proposal to add an option to instruct CForms to remove the XML node or to leave it empty makes sense. Anyway I should have been more careful when committing this incompatible change, as you're right most Cocoon users may not have been impacted by this problem. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/