Luis Majano Forums Notification: Post to Automatically include views?

Title: RE: Automatically include views?
Thread: Automatically include views?
Forum: Need Help?
Conference: ColdBox
User: lmajano

Hi Adam,

I will write up a request execution script so this is not confusing,
so thanks!! The order of execution is the following:

1.
ApplicationStartHandler (If application not initialized)
2. onRequestStart
Handler
3. handler.preHandler()
4. handler.method()
5. handler.postHandler()
6.
onRequestEnd Handler

I just uploaded a fix for this to the repo. An
interesting part to it, is that the runEvent() method now has two arguments:

1)
the event
2) prepostExempt flag [default=false]

You can pass a true to the
prepostExempt argument and the event will execute without executing the pre/post
handlers. By default it is false for any runEvent() method.

Does this help?
"Also, are posthandlers global or are they set per handler cfc (like
prefuseactions in a circuit.xml file or something"

Yes, the are like
prefuseactions in a circuit.xml.
The global pre/post handlers are the
RequestStartHandler and the RequestEndHandler.

Hope this helps.

http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=272B932C-123F-6116-42827CF2D6C2A6E7