Re: TextField Double type introduces commas

2011-01-15 Thread Arjun Dhar

So the getConverter() is deprecated and there is no setter. WHich confused me
a bit. 
Overriding the converter seemed like an overkill than setting a custom one
on the Field, so was not sure.

Thanks to your post, I'm clear on what to do.
https://cwiki.apache.org/WICKET/using-custom-converters.html

thank you very much
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TextField-Double-type-introduces-commas-tp3219013p3219365.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: TextField Double type introduces commas

2011-01-15 Thread Bas Gooren
Wicket uses converters to convert form fields from object -> string and back 
from string -> object.
This is done in a locale-aware fashion (so local users can use their 
preferred decimal separator etc).


Have a look at class DoubleConverter in the wicket sources (which is used in 
your case, since you have a Double), and at Component#getConverter() (which 
gets a DoubleConverter to perform the conversion).


Bas

- Original Message - 
From: "Arjun Dhar" 

To: 
Sent: Saturday, January 15, 2011 1:41 PM
Subject: TextField Double type introduces commas




Hi,
maybe this is really basic but I cant find it documented.
I force a TextField.

When it renders, it introducrs "commas (,)"  like 45000 => 45,000
I wanna get rid of the commas!

P.S Sorry if this really a RTFM question!
thanks
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TextField-Double-type-introduces-commas-tp3219013p3219013.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



TextField Double type introduces commas

2011-01-15 Thread Arjun Dhar

Hi,
 maybe this is really basic but I cant find it documented.
I force a TextField.

When it renders, it introducrs "commas (,)"  like 45000 => 45,000
I wanna get rid of the commas!

P.S Sorry if this really a RTFM question!
thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TextField-Double-type-introduces-commas-tp3219013p3219013.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org