You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thomas Singer <wi...@regnis.de> on 2008/09/08 09:22:20 UTC

Format double value in TextField

I'm using RequiredTextFields with Double.TYPE as content type. When I add a 
new business object, the default double values show up as "0". Where should 
I add a DecimalFormat to show, for example, "0.0000" instead?

--
Cheers,
Tom

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


Re: Format double value in TextField

Posted by Igor Vaynberg <ig...@gmail.com>.
override getconverter on the textfield and implement your own

-igor

On Mon, Sep 8, 2008 at 12:22 AM, Thomas Singer <wi...@regnis.de> wrote:
> I'm using RequiredTextFields with Double.TYPE as content type. When I add a
> new business object, the default double values show up as "0". Where should
> I add a DecimalFormat to show, for example, "0.0000" instead?
>
> --
> Cheers,
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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