Ahh, that explains it, thanks for that.

For a bit of context

I have a nested tree structure dynamically populated with selectable 
options pulled from config, containing checkboxes, radio boxes and custom 
selection widgets all of which need to trigger an event and some of which 
are nested within other selectable options. (Think, select an option and a 
different list of options are displayed, select one of those and yet more 
options are displayed.) I wanted to avoid having listeners in each node of 
my tree structure which purely catch events and re-fire them but I may 
just have to do that.

Thanks,
Rene




From:   thron7 <[email protected]>
To:     qooxdoo Development <[email protected]>, 
Date:   21/09/12 07:13 PM
Subject:        Re: [qooxdoo-devel] Enabling event bubbling issue



Yes, the dispatcher for custom events, qx.event.dispatch.Direct, cannot 
handle bubbling events (see its 'canDispatchEvent' method). 

The question is: What do you want to achieve with a bubbling *custom* 
event?! What should the semantics of "bubbling" be in the context of 
custom events? There is no default hierarchy where a custom event could 
bubble along, or is there?!

T.

On 09/21/2012 08:24 AM, [email protected] wrote: 
Hey guys, 

I've just got an issue with event bubbling at the moment, I am trying to 
enable bubbling on a standard qx.event.type.Event by using the following 
line 

this.fireEvent("changeSelectedOption", qx.event.type.Event, [true]); 

but I'm getting an error "No dispatcher can handle event of type 
changeSelectedOption ..." 
If I don't invoke the init() method by calling 

this.fireEvent("changeSelectedOption", qx.event.type.Event); 

the event fires correctly but doesn't bubble as is the default behaviour. 

My event is declared in my class as 

events : 
{ 
    changeSelectedOption: "qx.event.type.Event" 
} 

>From what I understand it should be possible to set generic events to 
bubble without needing to create my own custom bubbling event type. Am I 
going about this wrong somehow? 

Thanks, 
Rene Damyon 


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html


_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to