You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2004/09/06 16:12:27 UTC

[SOLVED] Re: Formatting without commas in CForm decimal widget storage

Bruno

Yes, you are absolutely right - my brain must be set
to "off" - not sure which archive this was in, but I
missed it when I searched. 

Hopefully, having made the same mistake twice now,
I will now remember!

Derek

>>> bruno@outerthought.org 2004/09/06 03:50:35 PM >>>
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 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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