Formatter Weirdness
Formatter Weirdness
- Subject: Formatter Weirdness
- From: Karl Moskowski <email@hidden>
- Date: Mon, 16 Aug 2004 11:18:22 -0400
In my app, I have a java.math.BigDecimal price field that's Decimal in
my database. When I try to show it in a WO component with a
numberformat bound to "$#,#00.00" it's rendered as $123.45, i.e., the
dollar sign becomes a generic currency symbol (Unicode #00A4 in
Panther's character palette).
However, if I instead create a variable in the WOComponent's Java:
NSNumberFormatter dollar = new NSNumberFormatter("$#,#00.00");
and bind that to the formatter (blanking numberformat), the number is
rendered correctly as $123.45.
I thought it might be some encoding inconsistencies, but I tried
various combinations, and nothing seemed to fix it. So, for now, I'll
use the formatter.
Am I doing something wrong? Do I have to set some sort of locale for
the application?
--Karl.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.