What does the code for the converter factory look like?

Eelco

On 4/6/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
> 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.
>
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to