• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Formatter Weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Porting WO from 4.x to 5.2
  • Next by Date: Re: WO blocking/threading question
  • Previous by thread: Action before DirectAction
  • Next by thread: WOTextField
  • Index(es):
    • Date
    • Thread