ColdBox Framework Forums Notification: Post to Overriding event in prehandler

Title: Overriding event in prehandler
Thread: Overriding event in prehandler
Forum: Need Help?
Conference: ColdBox
User: alex I've got my Environment Control Via Interceptors working nicely, which makes me
very happy. Now I'm trying to do something else that is giving me some trouble.
I have an entire handler that I'd like to not run under certain
circumstances. What I'm trying to do is test for this in the preHander and if
necessary, kick things over to a different handler/event. If I call
event.overrideEvent("otherHandler.otherEvent") in the preHandler, it seems to
have no effect. This surprised me. Have I misunderstood how this is supposed
to work?

I realize there are many different ways to solve the main problem of
preventing access to the handler, but I'd like to understand what I'm doing
wrong in this particular approach.

Thanks!
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=E784F689-FF65-CEF6-65594BD5BA0EA4C0