Global Events (again)

Global Events (again)

Postby mrbobbo » Mon Aug 15, 2011 4:23 pm

Through debugging I just learned that firing an event as one response in an action does not appear to wait for all the handlers to handle that event before it moves on to subsequent responses in the action. In my case, I have a Print button on a page. I wanted to fire startPrint, call the Print method from the PageController, and then fire stopPrint. And in the master page, the event handler for startPrint hides other master controls (to make the printed page look nice), while stopPrint shows them. In execution, startPrint is never handled (found this through debugging).

I think it would be good design for the response list to wait until the event is handled. But if that's not the case, at least the documentation could be clearer.
Or maybe I'm misunderstanding?

Posts: 27
Joined: Mon Aug 15, 2011 3:48 pm

Return to Feedback & Enhancement Requests

Who is online

Users browsing this forum: No registered users and 1 guest

Not able to open ./cache/data_global.php