If you use a Tapestry 3.0.3 Validfield, the valuator has two
purposes:
1) Validate Data
2) Perform Type Conversion
The sequence of events is:
If valid then return type converted object.
--- Pat
> -----Original Message-----
> From: Ryan Pan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 7:59 PM
> To: Tapestry users
> Subject: Re: a issue about type binding
>
> Hi Gunna,
> If "ValidField" has been used, is it means that we should do
> validation
> first and then we convert the type manually.So what I wanna is whether
> there
> were some ways to get type convert automatically?
>
> Thanks,
> Ryan.
>
> 2005/12/9, Gunna Satria <[EMAIL PROTECTED]>:
> >
> > ups.. sorry referred to Tap 3.
> > :D
> >
> > regards,
> >
> > Gunna
> > ----- Original Message -----
> > From: "Leonardo Quijano Vincenzi" <[EMAIL PROTECTED]>
> > To: "Tapestry users" <[email protected]>
> > Sent: Friday, December 09, 2005 10:15 AM
> > Subject: Re: a issue about type binding
> >
> >
> > > Gunna Satria wrote:
> > > > Hi,
> > > > You should use ValidField instead of TextField if you are using
> > > > Integer/Double data type.
> > > > But if you still want to use TextField any way, just make method
> > provide
> > > > String representation of your Integer value for the TextField value.
> > > >
> > > > regards,
> > > >
> > > > Gunna
> > > >
> > > Isn't ValidField deprecated in 4.0?
> > >
> > > --
> > > Ing. Leonardo Quijano Vincenzi
> > > DTQ Software
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]