I'm using GWT 1.7 and attempting to format some numbers to different
types of currency.  When calling NumberFormat.getCurrencyFormat() my
code will throw an exception, depending on the string passed.  The
only strings that work are USD, EUR, GBP, JPY.

Javadoc for NumberFormat says it uses the currency codes found in
com.google.gwt.i18n.client.constants.CurrencyCodeMapConstants.properties,
however it is actually using the following function from
com.google.gwt.i18n.client.impl.CurrencyList:

protected native void loadCurrencyMap() /*-{
    [email protected]::dataMap = {
        ":USD": [ "USD", "$", 2 ],
        ":EUR": [ "EUR", "€", 2 ],
        ":GBP": [ "GBP", "UK£", 2 ],
        ":JPY": [ "JPY", "¥", 0 ],
     };
  }-*/;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to