Title: Message
The situtation is a little different than others.. I am using an XML Controller Component in an MVC Framework,
that has defined parameters to load for every request/response...
eg.
 
 <ActionMapping action="" validate="false" view="system/view/home.cfm">
    <ConfigData dataClass="portalData" method="getLeftNavbar" returnType="array" varName="leftNav">
        <ConfigParam name="request.langCode" type="request" />
        <ConfigParam name="request.countrycode" type='request" />
    </ConfigData>
  </ActionMapping>
 
The above mappings are loaded in application scope and are dynamically processed by my Controller(MVC).
 
 If you define varName="leftNav" in xml config.. the variable you get in the View page is variables.leftNav etc.
 
The advantage of doing all the above is .. Once the Controller is finished, all you have to do is 
1. Add Mappings in XML
2. Methods in CFC
3. View pages for view layer Or template View pages can even be generated.
 
 
Joe Eugene
 
 
 
----- Original Message -----
Sent: Tuesday, June 17, 2003 4:39 PM
Subject: RE: [CFCDev] Dynamic CFC Calls

Perhaps you can go back to your requirements and evaluate why you are doing all these dynamic evaluations.  I could understand using dynamic instances but dynamic methods really shouldn't be necessary. 
 
Anyways, it seems you have two options available to you, evaluate and cfinvoke.  If you really don't want either one of these and feel you have to use cfscript then create another cfc that accepts as it's argument a container object, the name of the instance, the name of the method, and it can return the results using a dynamic cfinvoke.
 
HTH,

Sam
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Joe Eugene
Sent: Tuesday, June 17, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Dynamic CFC Calls

Can this be done in <cfscript>.... </cfscript>  block... i really dont want to jump
in and out of script blocks.
 
This works...
 
 variables.execMethod="request."&variables.varClass&"."&variables.varMethod;
 '#variables.varName#'= evaluate(variables.execMethod);
 
Perhaps there is a way to remove "evaluate" from the above..
 
Thanks
Joe Eugene
 
 

Reply via email to