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" <dhar...@yahoo.com>
To: <users@wicket.apache.org>
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<Double>.

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

Reply via email to