On 25.05.2007 08:17, Derek Hohls wrote:
after all the Cocoon docs *do* refer one to this page;
which implies it *should* work (and does, partially,
because the "," separator works.)
The convertor only delegates everything to DecimalFormat. If it works
there it will also work in the convertor. Cocoon does not do any parsing
of the pattern since this might lead to even more unexpected/
contradictory results when the logic does not match the one in
DecimalFormat.
The only calls that happen at the end in your case:
DecimalFormat decimalFormat =
(DecimalFormat)NumberFormat.getNumberInstance(locale);
decimalFormat.applyPattern("### ### ###.###");
decimalFormat.format(value);
Try to find out if that simple code works for you (out of the CForms
context). Also your pattern might be wrong. I'd try to change it,
something like "# ##0.0".
If everything does not help think about writing your own Convertor +
ConvertorBuilder, it's quite easy.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]