cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <...@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])
Date Wed, 09 Aug 2006 15:01:04 GMT
* 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/

Mime
View raw message