But why cant converToObject(String) not return a string??
Thats up to the developer.

So

textfield = new TextField()
{
  getConverter(Class clz)
  {
  }
}
textfield.setType(String.class)

that should work fine (and it does if i am not mistaken)

johan



On Mon, Mar 10, 2008 at 7:37 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:

> yes, since the converter interface now has
>
> convertToObject(String value);
> convertToString(Object value);
>
> not just a single convertTo(Object object, Class type)
>
> it makes it rather explicit that the converter is meant to convert
> something to a string and back...no?
>
> -igor
>
>
> On Mon, Mar 10, 2008 at 11:35 AM, Eelco Hillenius
> <[EMAIL PROTECTED]> wrote:
> > On Sun, Mar 9, 2008 at 9:45 AM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
> >
> > > i thought we agreed converters were type converters...
> >
> >  Did we? :-)
> >
> >  Eelco
> >
> >
> >
> >  ---------------------------------------------------------------------
> >  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]
>
>

Reply via email to