respond to
users@cocoon.apache.org
To
users@cocoon.apache.org
cc
Subject
Re: decimal formatting
Le 28 janv. 05, à 10:20, Gunter D'Hondt a écrit :
> Bertrand,
>
> I've tried that but with no luck; it keeps using the en_US formatting
> instead of nl_BE (or fr_FR); does Cocoon overwri
Le 28 janv. 05, à 10:51, Bertrand Delacretaz a écrit :
Le 28 janv. 05, à 10:33, Gunter D'Hondt a écrit :
...as you say this would output "d=123,45" but it always outputs
"d=123.45"..
I don't know enough about Locale to tell if if "123,45" is indeed the
expected output, but this could indicate tha
> Gunter D'Hondt wrote:
> > I've also tried a plain java program and call it like this:
> > java -Duser.language=fr -Duser.country=FR -Duser.variant=FR Main
> >
> > java program:
> > public class Main {
> >
> > public static void main(String[] args) {
> >
> > double d=123.45;
> >
Gunter D'Hondt wrote:
and what with the woody field convertors? for example i've got the
following widget declaration:
#0.00
I don't know if things have changed in this regard between Woody and
CForms, but in CForms at least you can provide
Le 28 janv. 05, à 10:33, Gunter D'Hondt a écrit :
...as you say this would output "d=123,45" but it always outputs
"d=123.45"..
I don't know enough about Locale to tell if if "123,45" is indeed the
expected output, but this could indicate that the specified Locale is
not available in your JVM.
Le 28 janv. 05, à 10:20, Gunter D'Hondt a écrit :
Bertrand,
I've tried that but with no luck; it keeps using the en_US formatting
instead of nl_BE (or fr_FR); does Cocoon overwrite this in some way?...
I don't think so, but what might happen is that your JVM doesn't have
the nl_BE Locale installed
Have you tried using javax.swing.text.NumberFormatter?
Gunter D'Hondt wrote:
I've also tried a plain java program and call it like this:
java -Duser.language=fr -Duser.country=FR -Duser.variant=FR Main
java program:
public class Main {
public static void main(String[] args) {
double
as you say this would output "d=123,45" but it always outputs "d=123.45"
Gunter
Bertrand Delacretaz <[EMAIL PROTECTED]>
28-01-2005 09:28
Please respond to
users@cocoon.apache.org
To
users@cocoon.apache.org
cc
Subject
Re: decimal formatting
Le 27 janv. 05, à
easily use
java.textNumberFormat but how can you specify this in xsl or woody??? or
just in general in a Cocoon webapp?
Gunter
Bertrand Delacretaz <[EMAIL PROTECTED]>
28-01-2005 09:28
Please respond to
users@cocoon.apache.org
To
users@cocoon.apache.org
cc
Subject
Re: decimal formatting
Le 2
Le 27 janv. 05, à 14:24, Gunter D'Hondt a écrit :
...is there a way to set this for the whole Cocoon application?
something
like setting the locale for the xslt-transformer?..
You can set the Locale globally at the JVM level, by setting the
appropriate command-line options when starting the JVM.
PROTECTED]>
28-01-2005 09:03
Please respond to
users@cocoon.apache.org
To
users@cocoon.apache.org
cc
Subject
Re: decimal formatting
Hello Gunter,
I saw your mail yesterday, but wanted to see if anyone had a better
solution than I.
AFAIK there's no easy way; we had a similar prob
Hello Gunter,
I saw your mail yesterday, but wanted to see if anyone had a better
solution than I.
AFAIK there's no easy way; we had a similar problem (can't control
whether the users enter numbers European-style or North American-style).
We wrote our own FormValidatorAction (which we use to v
Isn't anybody who knows how I can change the general decimal and thousand
seperator in a Cocoon application? How to switch them?
I've tried the LocaleAction but this only gives you the locale as a
parameter in your sitemap so that no use for decimal formatting
Any help is welcome!
Regards,
Gun
13 matches
Mail list logo