cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Formatting without commas in CForm decimal widget storage
Date Mon, 06 Sep 2004 13:50:35 GMT
On Mon, 2004-09-06 at 08:15, Derek Hohls wrote:
> With reference to this issue:
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109091824427273&w=2
> 
> Can anyone suggest how to override the "hard coding"
> of the decimal formatting so as to remove the comma
> when a decimal number is stored in an XML file as a
> result of binding (given that it is not displayed or entered
> that way on the form itself)?

You asked this question before, so you might want to check the archives.

Basically, define a convertor in the binding definition. Just to be
sure: IN THE BINDING DEFINITION. Because that's the point you were
missing last time.

To avoid any formatting, you can use the "plain" convertor. And pay
attention that the convertor must be in the fd namespace, not fb.

HTH

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message