Yes, I use the following code :
add(new TextField("montoTotal", Float.class));
I've made some tests and found that commenting the
definition of the IConverterFactory for the date format
and defining the format for the float field and it worked,
however I cannot define the format for both types.
Thanks,
Jaime.
did you do TextField.setType(Float.class) or create it with
the constructor that takes the class?
-Igor
On 4/6/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
>
> Hi, I've just downloaded version 1.2 beta 3 and I have a
> problem when editing the contents of a javabean,
> particularly in a case of a Float field. The relevant
> code is :
>
> Javabean :
> public class Pago
> {
> .....
> public Float getMontoTotal()
> {
> return Float.valueOf("1234567890");
> }
> .......
> }
>
> Html :
>
> <td class="tit">
> <input wicket:id="montoTotal" type="text" class="normal" size="20"/>
> </td>
>
>
> When the page is displayed it shows the following :
> 15-01-1970 in the textfield,
> this value corresponds to the date equivalent (aprox)
> to the above number in milisec.
>
> The only thing I've done that can be important to this
> issue is to define a new IConverterFactory to apply the
> same date format to the whole app.
>
> What is going on?
>
> Thanks.
>
> Jaime.
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
