Luis Majano Forums Notification: Post to Depricated RC scope

Title: RE: Depricated RC scope
Thread: Depricated RC scope
Forum: Bugs (ColdBox)
Conference: ColdBox
User: lmajano

puc,

First of all, what beta are you using right now? or have you just
downloaded the one from SVN?

This is very important because it tells me if you
are using a version with context or event as the object for usage. You can also
tell by looking at the /coldbox/system/plugins/renderer.cfc

In the renderView
method, look at the second line:

Does it say this?
[code]
<cfset var Event =
controller.getRequestService().getContext()>
[/code]
or this?
[code]
<cfset var Context = controller.getRequestService().getContext()>
[/code]
Ok, I am going to assume you have the latter, because of your post. You won't be
able to say #context.title# in your views, because Context is the actual object.
To bypass this YOU NEED TO CREATE A REFERENCE TO THE COLLECTION. Look at the
snippet below:

[code]
//Create a reference to the collection
cfset rc =
Context.getCollection()

//Then I can use the dot notation

Hi my name is
#rc.title#
[/code]

Do you see this puc?

http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=4C4AEEF0-123F-6116-429DF123C83D1664