Hi Alexander,

On 25.05.2010 00:05, alexander.volik wrote:

>> seems like you're looking for the preventDefault() method.
> Yes, it works for the textbox.

>> Otherwise, if you don't want the user to select certain ListItems, you
>> can check for the selection in the "changeSelection" listener and have
>> the SelectBox or List instantly resetSelection().
>>
> I have tried using this method and got an error "too much recursion".
> ResetSelection() method fires "changeSelection" event and again, again

This is a matter of what else you are doing in the listener; I tried in 
playground and it worked for me.
So I guess you will have to rework the things happening in the 
changeSelection listener on your own (or maybe drop this concept).
Just keep in mind that resetting the selection DOES in fact change the 
selection and you should have the listener ignore the case of "empty 
selection".

HTH,

greetings,
Stefan


------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to