Hi Jordan
Ignoring the question of Session facades etc, I've come across this kind of
error before trying to do similar ajaxy stuff.

Obviously the "getProperty isn't defined" error implies that the framework
isn't loaded or is not loading properly.

The "variable APPLICATION is undefined" implies that the application scope
hasn't loaded or is having a problem before it can.

How are you making your remote calls? via the usual
http://domain/foo/index.cfm?event=bar ?

Or are you using cfajaxproxy or some such to call your ajaxProxy.cfc
directly - if so you have to note that the mach-ii app will be bypassed,
hence the errors.

It's hard to tell without seeing more code.

Cheers

Darren



On Tue, Oct 20, 2009 at 6:00 PM, Jordan G. <[email protected]> wrote:

>
> 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