Luis Majano Forums Notification: Post to getRequestService().getContext() problem

Title: RE: getRequestService().getContext() problem
Thread: getRequestService().getContext() problem
Forum: Need Help?
Conference: ColdBox
User: lmajano

Hi,
All I can see is that the variable context is not var scoped. This means,
that it will be available throughtout the plugin scope and might cause issues.
Since it is cashed.

I would try to var scope it first and see if it resolves
the issues.

[code]
cfset var myContext =
controller.getRequestService().getContext()
[/code]

There should not be a
problem when caching it. You can look at the renderer plugin, it is exactly how
it works. So there might be something else throwing it off. Turn CF debugging
and also look at the CF debugging messages, maybe its something else that is
failing.

But defintely try var scoping it. This is essential if you don't want
requests overwriting data.

http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=98063223-123F-6116-4279CDD95003BA5D