cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Formatting decimal values in a form
Date Thu, 24 May 2007 12:02:19 GMT
Still using Cocoon 2.1....
I need to format the "thousands" values in form's data value widget.
If I have:
<fd:datatype base="double">
    <fd:convertor type="formatting">
This works as expected eg. 5678901 is shown 5,678,901
The client would prefer space-separated values, but
<fd:datatype base="double">
    <fd:convertor type="formatting">
        <fd:pattern>### ### ###.###</fd:pattern>
does not work -  5678901  stays 5678901 
The decimal format doc says:
"The prefixes, suffixes, and various symbols used for infinity, digits,

thousands separators, decimal separators, etc. may be set to 
arbitrary values, and they will appear properly during formatting. 
However, care must be taken that the symbols and strings do not 
conflict, or parsing will be unreliable." 
Does this mean that spaces are a "conflicting symbol" - 
is there any way of getting this to work??

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message