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">
<fd:patterns>
<fd:pattern>###,###,###.###</fd:pattern>
</fd:patterns>
</fd:convertor>
</fd:datatype>
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:patterns>
<fd:pattern>### ### ###.###</fd:pattern>
</fd:patterns>
</fd:convertor>
</fd:datatype>
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."
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html
Does this mean that spaces are a "conflicting symbol" -
is there any way of getting this to work??
Thanks
Derek
--
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
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html
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
[EMAIL PROTECTED]
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]