If this is intended behavior, then I would contend that it is wrong. There
is a difference between null and and empty string. Null means that there is
no value assigned, and empty string means there is a value assigned, just
that it's empty. I would say this is a bug in the design. The TextField
needs to support null. All databases allow null for a string field, so
display controls should too.
Jim


On Fri, Apr 3, 2009 at 1:00 AM, Martin Wittemann
<[email protected]>wrote:

> Hello Mike,
>
> this behavior is like we want it to be. The TextField only accepts
> Strings as values. All other types will cause such an exception.
>
> Regards,
> Martin
>
>
> Am 02.04.2009 um 20:04 schrieb mshillin:
>
> >
> > Calling qx.ui.form.Textfield.setValue(null)
> >
> > throws an exception
> >
> > [Exception... "'Error: Invalid value type: null' when calling method:
> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> >
> > This is different from 0.7.x where setting a textfield value to null
> > would
> > clear the textfield.
> >
> > Is this a bug - or "Works As Designed"?
> >
> >
> > Thanks
> > Mike Shillinger
> >
> > --
> > View this message in context:
> http://www.nabble.com/Textfield.setValue%28null%29-throws-Exception-in-.0.8.2-but-not-0.7.x-tp22853793p22853793.html
> > Sent from the qooxdoo-devel mailing list archive at Nabble.com.
> >
> >
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to