Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 340993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:40:04+00:00 2026-05-12T10:40:04+00:00

I have a GWT project in which I need to manually specify currency, number

  • 0

I have a GWT project in which I need to manually specify currency, number and datetime formats. These customizations include specifying the currency symbols, grouping seperator, decimal seperator, negative number formats etc. What would be the best way to accomplish this?

Should I use the GWT NumberFormat class? NumberFormat makes extensive use of the GWT internationalization constructs like the Constants interface etc. If you therefore specify a custom number format mask, it will still look at the current locale and use those monetary symbols, decimal symol and thousand separators, as is specified in the late-bound and internationalized ‘NumberFormat’ instance.

My question is: how would you accomplish this? Would you re-implement NumberFormat‘s functionality? Would you derive from it and use the protected constructor and pass it in some kind of custom NumberConstants instance that you created yourself? How about getting the i18n NumberConstants instance, and using that to populate your own instance and override only what you want?

How would you approach this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:40:04+00:00Added an answer on May 12, 2026 at 10:40 am

    I have used NumberFormat.getFormat(String format) for custom currency formatting (removing “US” before the $ sign).

    In my application I put the result into public constant. I have stored the “format” argument in i18n resource bundle as well as all UI specific strings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm playing with a GWT/GAE project which will have three different pages, although it
I need to include/inherit javax.xml.datatype.XmlGregorianCalendar in my GWT module. I have a proxy gxt.xml
I have a large project which I am compiling with GWT. During this process
I'm working on a GWT project, in which I have to fetch some JSON
I have maven-gwt project. It has lots of dependencies which is usual by a
I have gwt web project, which must use application.properties (on client side) loaded as
I have a GWT project in Eclipse to which i try to add a
I have a project which consists of GWT client end and a Tomcat server
I am using gwt project. In which I have different type of label question
I have a GWT project which has its source managed in SVN, is packaged

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.