[SOLVED] Re: decimal formatting

2005-01-28 Thread Gunter D'Hondt
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

Re: decimal formatting

2005-01-28 Thread Bertrand Delacretaz
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

RE: decimal formatting

2005-01-28 Thread Conal Tuohy
> 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; > >

Re: decimal formatting

2005-01-28 Thread Vilya Harvey
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

Re: decimal formatting

2005-01-28 Thread Bertrand Delacretaz
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.

Re: decimal formatting

2005-01-28 Thread Bertrand Delacretaz
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

Re: decimal formatting

2005-01-28 Thread John L. Webber
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

Re: decimal formatting

2005-01-28 Thread Gunter D'Hondt
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, à

Re: decimal formatting

2005-01-28 Thread Gunter D'Hondt
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

Re: decimal formatting

2005-01-28 Thread Bertrand Delacretaz
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.

Re: decimal formatting

2005-01-28 Thread Gunter D'Hondt
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

Re: decimal formatting

2005-01-28 Thread John L. Webber
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

Re: decimal formatting

2005-01-27 Thread Gunter D'Hondt
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