On Tue, Nov 25, 2008 at 2:05 PM, Patrick Paskvan
<[EMAIL PROTECTED]>wrote:

>
> "There is no event handler for the event 'changeData' on target
> 'qx.ui.form.SelectBox[blah]"
>
>
> ------------- CODE SNIPPET ----------------
> qx.Class.define("sample.thing",
> {
>        extend : qx.ui.container.Composite,
>
>        construct : function ()
>        {
>                this.base(arguments);
>                this.setLayout(new qx.ui.layout.HBox);
>
>                this._sb = new qx.ui.form.SelectBox;
>                this._sb.addListener("changeData", this._fillBox, this);
>                this.add(this._sb);
>
>                this.setData(["one", "two", "three"]);
>        },
>
>        properties :
>        {
>                data : {
>                        check : "Array",
>                        init : [],
>                        event : "changeData"
>                }
>        },
>
> Ok, so "data" is a property of the "sample.thing" class, but you're trying
to add a listener on your SelectBox object, not on an object of class
"sample.thing". There's currently no relationship between the two.

I'm not quite sure what you're trying to do with this property.  Who sets
it?  The SelectBox won't set it unless you add code to do so.

A SelectBox does dispatch a "changeSelected" event, so you could listen for
that using your common event handler method.  I suspect that's what you're
trying to do.  In that case, you don't need your local "data" property at
all.

               this._sb.addListener("changeSelected", this._fillBox, this);

and then act accordingly in this._fillBox.

Cheers,

Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to