Thanks for all your posts. Here's what I've been doing:

Listing 1

<cfcomponent displayname="objFact">

<cffunction name="makeObj">

<cfobject class="someClass" name="session.obj">

</cffunction>

</cfcomponent>

-----
Listing 2

<cfobject class="objFact" name="application.objFact">
<cfset foo = application.objFact.makeObj()>

Bad design aside, it seems--technically--this should work. Taking the makeObj() code out of the application scope (I ended up putting it into a custom tag) fixed the problem.

js
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to