A global or uniform event system like this is essential for larger
applications to allow for flexibility and maintenance.
Most java applications make extensive use of listeners and event
dispatchers.

The performance of the model depends on how it is implemented and can be
very fast.

XUL provides a good guide as to how such a system may be implemented for
user interfaces. It covers all essential requirements and several differents
ways to tie into the event system.
A good intorduction to XUL can be found here:
http://xulplanet.com/tutorials/xultu/

Extending the model to the server is trivial once the client supports it.

This will be a major part of the PHP QXBuilder I am working on.

It would be great if you restructure your application as you described as we
can then use it with minor modifications to test the event system that will
be part of the builder.

Christoph

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christian
Boulanger
Sent: June 21, 2006 2:24 PM
To: qooxdoo Development
Subject: [qooxdoo-devel] Global event system

Hi,

I am currently converting my app away from using objects which call each 
other's methods to for some behaviour to objects which communicate which 
each other through global events  
(window.application.createDispatchEvent("foo"),  
window.application.createDispatchDataEvent("foo", {blub:true}, 
window.application.addEventListener("foo", function(e){....}), and am 
very much intrigued by the idea. Advantages include that I do not have 
to give objects names in the global namespace or in an object registry. 
All objects just exist independently and listen for each others events 
to react to them (or not). All the behaviour code is located at the 
object level - it is also easier to keep the application stable because 
missing or broken functions cannot break it. I am thinking of extending 
the system to include client-server communication.

Since the idea seems so nice to me, I wonder what the drawbacks might 
be. Do you expect a major performance loss?

Thanks for any input,

Christian

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to