Hi,

I'm trying to implement AJAX functionality through my M2 application
but I'm having some issues with it.

Right now, I have an Application.cfc that defines the M2 application
and a SessionFacade that is a property to the M2 application. The
SessionFacade.cfc manages all of the session information, similar to
the way that Adrian Moreno recommends. There is an
applicationProxy.cfc that extends the application in the webroot, and
then a directory called remoteFacades. The app.cfc in the
remoteFacades directory looks like this:

<cfcomponent extends="txwas.ApplicationProxy">

        <cffunction name="onRequestEnd" access="public" returntype="void">
                <cfsetting showdebugoutput="false" />

                <cfscript>
                        Super.onRequestEnd();
                </cfscript>
        </cffunction>

</cfcomponent>

Then I have an ajaxProxy.cfc in that directory. The code runs
correctly as long as the Session scope is accessed directly, however
when I try to access the M2 Session Facade it crashes. This is the
code that is crashing:

local.argumentCollection.ROLE_ID                = getProperty
("SessionFacade").getRoleID();

Says that getProperty isn't defined.

However, when I try to see if getProperty is available in the
remoteFacade directory's app.cfc, I get this error:

Error Occurred While Processing Request
Variable APPLICATION is undefined.

The error occurred in D:\inetpub\wwwroot\MachII\mach-ii.cfc: line 197
Called from D:\inetpub\wwwroot\MachII\mach-ii.cfc: line 186
Called from D:\inetpub\wwwroot\TXWas\remoteFacades\Application.cfc:
line 3

195 :           hint="Get the Mach-II AppManager. Not available until
loadFramework has been called.">
196 :           <cftry>
197 :                   <cfreturn 
application[getAppKey()].appLoader.getAppManager() /
>
198 :                   <cfcatch type="application">
199 :                           <cfthrow 
type="MachII.framework.AppManagerNotAvailable"

Am I doing something wrong here or should I just access the session
scope directly?

Thanks,

Jordan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to