The problem is not with code you've shown. It must be something else.
The value in the database is correct. When you read the data from the
database is it stored in a Double as well?

Juergen

On 7/26/06, Md. Kamruzzaman <[EMAIL PROTECTED]> wrote:
>
>
>  Hi,
>  I'm having great problem with handling Double values in the text box. When
> I am entering a double value in a text box with more than 3 precisions like
> 1.999999 or 1.9999, it is being saved in the database accurately,  but the
> post back value showing in the text box is rounded to next Integer (in case
> of 1.999999 or 1.9999 it is showing 2).
>
> My sample code is given below:
>
> add(new RequiredTextField("amount", Double.class));
>
>
> Looking forward to have a good solution from you.
>
>
> --Md. Kamruzzaman
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to