> I am having a couple of problems with doubles.
>
> 1. when I hand a double into a TextField the value is often rounded. Is
> there a way to make sure this does not happen?

Did you set the type to double? new TextField("foo", model, Double.class);

> 2. i would like to validate an entry so that it has a maximum of x
> digits after the decimal. Is there some functionality that will allow me
> to do this?

You should be able to do that by configuring converters. You can
either do this application-wide in your application settings (search
for this on the WIKI), or by overriding getConverter of the component
in question.

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to