O.K. I have more information on this now that I'm hoping this will turn a
light bulb on for someone.
I'm trying to call variables.instance.ModelUtilities.myFunctionName() from
within my extended gateway
extends="reactor.project.AppManager.Gateway.MyTableGateway"
If I put the code below at the top of my extended Gateway I am able to
access the function in my object, however, it won't work automatically out
of ColdSpring the way the rest of my objects do. I tried putting this same
code in an init in my extended gateway but the init never gets called. I am
wondering why the init doesn't get called and if it's supposed to be that
way how do I accomplish this correctly.
<cfset variables.instance.ColdSpringBeanFactory = createObject("component","
coldspring.beans.DefaultXmlBeanFactory").init() />
<cfset
variables.instance.ColdSpringBeanFactory.loadBeansFromXmlFile("D:\Inetpub\wwwroot\AppManager\config\ColdSpring.xml",true)
/>
<cfset variables.instance.ModelUtilities =
variables.instance.ColdSpringBeanFactory.getBean("ModelUtilities") />
On 12/28/06, Bryan S <[EMAIL PROTECTED]> wrote:
If I call my function getModelUtilities().setQuerySortCriteria() from my
model glue controller there is no problem.
However, if I call it from my extended Gateway I get the error message
below. I went into my autowire.cfm and if I call a different getter in
there variables.instance has a modelutilities in it. However, when I dump
variables.instance inside of getModelUtilities it doesn't exist. What am I
missing?
*Message* Element INSTANCE.MODELUTILITIES is undefined in VARIABLES. *
Detail*
*Extended Info*
*Tag Context* D:\Inetpub\wwwroot\AppManager\includes\autowire.cfm (47)
D:\Inetpub\wwwroot\AppManager\model\data\Gateway\GROUP_USERGateway.cfc
(57)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --