4 10:24:34 AM UTC+1, Gaurav Mourya wrote:
>
> Hi All,
>
> I am using GWT 2.5.1 and I have an issue regarding “NumberFormat” supports
> for multiple language.
>
> Please refer the following below URL : -
> http://samples.gwtproject.org/samples/Showcase/Showcase.html?local
Hi All,
I am using GWT 2.5.1 and I have an issue regarding “NumberFormat” supports
for multiple language.
Please refer the following below URL : -
http://samples.gwtproject.org/samples/Showcase/Showcase.html?locale=en_GB#!CwNumberFormat
As per required pattern I’ll be not getting value
Hai,
I have a doubt regarding currency format in GWT.I am using gwt2.5 and
tried formatting my value to Indian currency format using "il8n
NumberFormat" by setting "Locale = en_IN" in gwt.xml. when i execute my
code result was Rs. 10,000,000.00 instead of Rs 10,00,00,00
On 16/04/2013 18:43, Thad wrote:
NumberFormat has not worked the way I expected
(see
https://groups.google.com/d/msg/google-web-toolkit/zlbRIhTKqrA/cyjaDB12K6UJ for
an
experience with devmode vs production).
On Monday, April 15, 2013 3:29:30 PM UTC-4, Patrick Tucker wrote:
Today I
NumberFormat has not worked the way I expected
(see
https://groups.google.com/d/msg/google-web-toolkit/zlbRIhTKqrA/cyjaDB12K6UJ
for an experience with devmode vs production).
On Monday, April 15, 2013 3:29:30 PM UTC-4, Patrick Tucker wrote:
>
> Today I noticed that the output
Today I noticed that the output of my NumberFormat (GWT 2.5.0) is not what
I thought it had been set to. So I played with it a little and found the
output to be inconsistent.
The formats:
1: NumberFormat.getFormat("#,###.##")
2: NumberFormat.getFormat("#,###.00")
3: Nu
I'm am unable to get com.google.gwt.i18n.client.Messages for format a float
in production.
My DefaultMessage looks like "{0,float,#.0}\"". In DevMode, my number has
one digit after the decimal, e.g., 8.8" or 11.6"
In production--now Javascript vs Java--the number has *many* digits after
the de
Simply split it by dot. Take last 3 chars of first string, use formatting for
second. And join again by dot
-Bakul
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/
>
> that means format a 1234.567 will get 234.58.
>
Why would you ever want to do that? Now you users don't know if you are
displaying 234 or 1234 of 1000234. Your trouble might be coming from this
unusual formatting you are attempting. Most number formatting functions
won't do this because i
Hi everyone,
There is one topic about how-to use NumberFormat to set minimum number of
integer digit.
But now I come across one problem, I only wanna keep the decimal format
looking like "000.00", three integer and two number after decimal point.
that means format a 1234.567 will
(Happy New Year!)
I need to change grouping separator (, in US . in DE) to Space (' ') for
all Locales how to achieve that?
thx in advance
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https:/
ng or refusing
currency symbols and/or currency codes). What I don't find correct is
to always require a " €".. the user can't even type a ...
Not being able to use NumberFormat to parse currency values would be a
pity. I would expect to be able to use the same format both way
Not sure this is a bug, maybe by-design (i.e. don't use the currency format
for parsing).
If you want to parse a number, don't use a currency format.
If you expect the user to (optionally) type in the currency symbol, you'd
better pre-process the value (what if the user types "$10" in a € locale?
Thank you Thomas for the clarification.
Do you agree though that there's a bug on NumberFormat? It should not
require " €" to be in the end of a string it parses, although it
may add it to the end of a string it formats. Right?
On Dec 15, 2:40 pm, Thomas Broyer wrote:
&g
-62, -96, or in hexadecimal C2,A0 is the encoding (in UTF-8) of a
non-breaking space (U+00A0, widely known on the web as ) It's a
distinct Unicode character than a space (U+0020, encoded in UTF-8 as 32);
it's not an encoding issue (btw, all strings in JavaScript are in UCS-2,
just like in Java
Hello,
I'm having some weird issues with NumberFormat. I'm using it with the
currency pattern, which for my locale is the euro.
The first problem I've notice is that the parser is treating the string "
€" as a "positiveSuffix". And if such string is not at the
Hi, I would like to be able to call the NumberFormat format method
with a Double and get in the string all the digits available in the
Double value.
It seems to me that you have to forcefully specify in the patter one
digit per decimal you want to display (i.e. "#.#" for 5 deci
ok, thanks everyone who contribute.
My conclusion is quite simple: since I only have a localized pattern,
I won't be able to use that and format the numbers acc. to it.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group
uot; are special
symbols used by the NumberFormat class for grouping and as decimal
separator. You always have to use these symbols like they are defined in the
JavaDoc for NumberFormat regardless of the target locale you want to use.
The target locale is then responsible for changing ",&q
On 12 Jul., 10:26, Thomas Broyer wrote:
> You're confusing the syntax of the pattern you give to NumberFormat for
> parsing, and then the use of that NumberFormat within the context of a
> locale.
> What you *give* to NumberFormat is locale-insensitive: #,##0.0##
>
You're confusing the syntax of the pattern you give to NumberFormat for
parsing, and then the use of that NumberFormat within the context of a
locale.
What you *give* to NumberFormat is locale-insensitive: #,##0.0##
When you have that NumberFormat instance, what it does then depends o
Tom, Rob,
thanx for this valuable information. That default is not "default" is
quite interesting, I wasn't aware of that.
But then the question is, how do I change the NumberFormat so that it
uses the set locale, eg de_DE, instead of "default"? I have not been
able to fi
In a pattern, a dot is always the decimal separator and a comma always
represents the thousands separator. When you render a number using the
pattern, those separators might appear differently depending on the locale
(e.g. the decimal separator being a comma and the thousands separator being
a
used by my app, because
> all the default texts, eg when loading data, show up in german.
>
> The documentation (and posts in various forms) say, that NumberFormat
> uses the default locale to get a formatter, with a specific pattern,
> which I assume in my case is de_DE, becaus
#.##0,0##.
I know that the locale is set correctly and used by my app, because
all the default texts, eg when loading data, show up in german.
The documentation (and posts in various forms) say, that NumberFormat
uses the default locale to get a formatter, with a specific pattern,
which I assume
Hi!
I'm working on an enterprise GWT/GXT application and we've recently
noticed that our currency fields are not correctly formatting single-
digit inputs.
We're using java.math.BigDecimal to represent the internal values, and
using NumberFormat.getFormat("$#,##0.00; ($#,##0.00)") for our format
I know I can pad a number with zeros, is there a way to pad them with
blanks? There are a couple of rules in the EBNF that seem to point
this way:
number := (integer ('.' fraction)?) | sigDigits
sigDigits := '#'* '@''@'* '#'*
padSpec := '*' padChar
padChar := '\u'..'
Click this link:
http://gwt.google.com/samples/Showcase/Showcase.html#!CwNumberFormat
Look for the ListBox in the top right corner of that page. Select
"English - India" from that list.
The page changes to:
http://gwt.google.com/samples/Showcase/Showcase.html?locale=en_IN#!CwNumberFormat
Note
Hi Jim,
Thanks for looking into it. But still I have a problem, when in the
custom format I use just ¤ then in the output I am getting ? and when
I use ¤ then I get US$. Note that I do have UTF-8 encoding in the
browser.
On Oct 27, 1:23 am, Chris Conroy wrote:
> Jim,
>
> Thanks for pointing out
Jim,
Thanks for pointing out this problem. jat has just committed a fix:
http://code.google.com/p/google-web-toolkit/source/detail?r=9150
On Tue, Oct 26, 2010 at 3:47 AM, Jim Douglas wrote:
> I think you're getting thrown by a small character encoding error on
> that documentation page:
>
>
> h
I think you're getting thrown by a small character encoding error on
that documentation page:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/i18n/client/NumberFormat.html
The page will display correctly if you force it to display in UTF-8.
To do that, select something lik
Hi,
I want to use custom number format which may contain currency symbol
for perticular locale. I found that with the
com.google.gwt.i18n.client.NumberFormat class we can achieve this but
the symbol for the currency is ¤ instead of ¤ in java. Note that the
unicode used is same as that of the java
Jul 7, 2010 at 1:36 PM, Patrick Tucker wrote:
> > Nobody knows??
>
> > On Jun 23, 10:28 am, Patrick Tucker wrote:
> > > Why does GWT not have a getIntegerInstance() in NumberFormat??
>
> > > It seems simple enough to implement and it is part of java...
I know that patches are always
welcome<http://code.google.com/webtoolkit/makinggwtbetter.html>
.
On Wed, Jul 7, 2010 at 1:36 PM, Patrick Tucker wrote:
> Nobody knows??
>
> On Jun 23, 10:28 am, Patrick Tucker wrote:
> > Why does GWT not have a getIntegerInstance() in Numb
Nobody knows??
On Jun 23, 10:28 am, Patrick Tucker wrote:
> Why does GWT not have a getIntegerInstance() in NumberFormat??
>
> It seems simple enough to implement and it is part of java...
>
> Is it implemented somewhere else?
>
> Thanks,
> Pat
--
You received this
Why does GWT not have a getIntegerInstance() in NumberFormat??
It seems simple enough to implement and it is part of java...
Is it implemented somewhere else?
Thanks,
Pat
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To po
Hi,
The below code works for me
NumberFormat threeDForm = NumberFormat.getFormat("#.###");
Thanks and Regards
Gourab.
On Thu, Mar 25, 2010 at 3:02 PM, StrongSteve wrote:
> Hello,
>
> I experience the following - from my point of view unexplainable -
> behavi
hi there,
I've been trying to format decimals numbers in the French style; eg
5 000,00
tried setting a number pattern, nothing worked;
api says "corresponding locale symbol collection" are in
com.google.gwt.i18n.client.constants and there one reads:
use LocaleInfo.getCurrentLocale().getNumberCons
- from my point of view unexplainable -
> > behaviour when using the GWT NumberFormat
> > (com.google.gwt.i18n.client.NumberFormat). I am using GWT 2.0.3,
> > Eclipse Ganymed and IE8/FF3.6.
>
> > Within my client package I have a static helper class which contains
> > the fol
No one?
On Mar 25, 11:32 am, StrongSteve wrote:
> Hello,
>
> I experience the following - from my point of view unexplainable -
> behaviour when using the GWT NumberFormat
> (com.google.gwt.i18n.client.NumberFormat). I am using GWT 2.0.3,
> Eclipse Ganymed and IE8/FF3.6.
&g
Hello,
I experience the following - from my point of view unexplainable -
behaviour when using the GWT NumberFormat
(com.google.gwt.i18n.client.NumberFormat). I am using GWT 2.0.3,
Eclipse Ganymed and IE8/FF3.6.
Within my client package I have a static helper class which contains
the following
Since you are in JavaScript, thread safety should not matter as far as
concurrent updates to object state. Regardless, you can see from the
code in both classes that the state is not really changed once the
pattern has been parsed.
Of course, there can be memory size issues if you store lots objec
Hello,
Are classes mentioned in subject thread-safew and reusable.
For instance if i'm using them in cell renderer in GXT grid for formatting
value.
Should i create instance each time i need to format value or instance can
be created once and then reused ?
--
Best Regards
Evgeny K. Shepelt
Hello,
I was unable to find any info regarding my questions. Are those 2
classes from com.google.gwt.i18n.client package are reusable ?
For example if i'm using grid cell renderer in GXT should i create new
instance each time i need to format value
or i can create formatter instance once and reuse
Hi,
This is a known bug. See
http://code.google.com/p/google-web-toolkit/issues/detail?id=4368
for more details and workarounds.
-Tomas
On Feb 5, 4:43 am, Tercio wrote:
> Hi!
>
> I have aNumberFormatwith 8 decimal places, that the code:
>
> NumberFormatformat =NumberFormat.getFo
Hi!
I have a NumberFormat with 8 decimal places, that the code:
NumberFormat format = NumberFormat.getFormat("#,##0.");
System.out.println(format.format(1234.5678d));
When I run, it prints: "1,234.7852517"
But should print: "1,2
I can't get NumberFormat working, it seems like it can't parse its own
output.
I have copied following from the watch-panel in Eclipse:
/*
* NumberFormat decimalFormat =
* com.google.gwt.i18n.client.NumberFormat.getDecimalFormat();
*/
"decimalFormat.format(123
I can't get the NumberFormat working, it seems like it can't parse its
own output.
I have copied following from the watch-panel in Eclipse:
/*
* NumberFormat decimalFormat =
com.google.gwt.i18n.client.NumberFormat.getDecimalFormat();
*/
"decimalFormat.format(123
Hi SkiD-
Doesn't your subject answer your question? Isn't the NumberFormat
class what you're looking for?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html?com/google/gwt/i18n/client/NumberFormat.html
On Nov 6, 8:38 am, SkiD wrote:
> Hello,
>
> i wan
was to convert it from a String to
> > an integer. I think I have fixed part of the problem. My code now
> > looks like this:
>
> > NumberFormat fmt = NumberFormat.getCurrencyFormat();
> > String formatted = fmt.format(discountAmount);
> > discountAmount = Integer
Or at least change it to £2.57 instead of $?
On Mar 17, 8:58 pm, "fatjack1...@googlemail.com"
wrote:
> Ok,
>
> The reason I wasparsing it back in was to convert it from a String to
> an integer. I think I have fixed part of the problem. My code now
> looks like t
Ok,
The reason I wasparsing it back in was to convert it from a String to
an integer. I think I have fixed part of the problem. My code now
looks like this:
NumberFormat fmt = NumberFormat.getCurrencyFormat();
String formatted = fmt.format(discountAmount);
discountAmount = Integer.parse
e
> code I am using:
>
> //Format the discount to two decimal places
> NumberFormat fmt = NumberFormat.getCurrencyFormat();
> String formatted = fmt.format(discountAmount);
> discountAmount = NumberFormat.getCurrencyFormat().parse(formatted);
>
> The discount amount fiel
Hi,
I am having some problems correctly displaying currency. Here is the
code I am using:
//Format the discount to two decimal places
NumberFormat fmt = NumberFormat.getCurrencyFormat();
String formatted = fmt.format(discountAmount);
discountAmount = NumberFormat.getCurrencyFormat().parse
I'm trying to format international currency values all in the same
application, and I'm switching from using my home-baked solution to
using GWT's NumberFormat. What I can't figure out is how to determine
and change the number of decimal places for each currency.
For examp
IL PROTECTED]> wrote:
> Does gwt NumberFormat support COMMA as decimal seperator? (for LOCALE
> France etc)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post
Does gwt NumberFormat support COMMA as decimal seperator? (for LOCALE
France etc)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to Google-W
57 matches
Mail list logo