You probably need to call clearEventQueue() before you announce the new event. This doco shows it:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/IntroToPlugins Mach-II uses an event queue so when you call announce event it gets add to the end of the queue -- if any other event announcements have occurred they will happen first unless you clear the event queue. I know the event queue is mentioned in the wiki somewhat -- maybe somebody on the list will volunteer to write a short wiki entry. .Peter MercuryNewt said the following on 07/14/2009 09:54 AM: > Thanks Matthew! > > Let me ask you this, can I not abort the current processing and > announce a new event inside of a plugin? Do I need to use a filter > for that type of functionality? I've tried a few things and can't > seem to get that to work. > > Thanks, > > Tim > > On Jul 14, 10:00 am, Matthew Woodward <[email protected]> wrote: > >> MercuryNewt wrote: >> >>> Now, if I understand Mach-II >>> (and I don't pretend to ;o) I could achieve similar development >>> utilizing a plugin approach, is this correct? I'm looking for a way >>> to ensure that those components that I have now turned into >>> properties, as well as other application-wide settings exist and if >>> not, set them for each request. >>> >> Yep, if you need something to happen on every request a plugin is the >> way to go. >> >> -- >> Matthew Woodward >> [email protected]http://www.mattwoodward.com/blog >> >> Please do not send me proprietary file formats such as Word, PowerPoint, >> etc. as attachments.http://www.gnu.org/philosophy/no-word-attachments.html >> >> smime.p7s >> 4KViewDownload >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---
