Hello Fabian,
yes you are right: The error occurs, because in the
this.textField26.addListener I affected another Listener, which tries to
change the content of a selectbox, which is changed in the listener of
textField26.
Is there a possibilty to check the status of a selectbox in a handler?
I think it has todo with hasState().
Kind Regards
Thomas
Fabian Jakobs schrieb:
> Thomas Bückemeyer schrieb:
>> Hi,
>>
>> I am working with qooxdoo sdk 8.2.
>>
>> I don't understand the behavior of a "changeValue"-Listener in my
>> Application. When I initialize the appication the following handler only
>> executed the first line.
>>
>> The function "this.someFunction" changed the Value of another Selectbox,
>> but not of the Selectbox "textField26".
>>
>> -----
>> this.textField26.addListener("changeValue", function(e) {
>> this.debug("change Value!");
>> this.someFunction (someParameter1, someParameter2, someParameter3 );
>> this.debug("Value changed!");
>> }, this);
>> -----
>>
>> When I changed the selectbox again, all three commands will be
>> executed. When I chagend the Selectbox again, only the first line was
>> executed. And so on...
>>
>> Is there a problem with calling a function in a handler? When I comment
>> out the second line, the handler works allways fine.
>>
> My guess would be that the second line throws an exception and causes
> the last line not to be called. If you have Firebug installed this is
> signaled by a red warning symbol in the browser status bar.
>
>
> Best Fabian
>
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel