Anybody know how to dynamically call methods in CFC's
 
<cfscript>
request.dataObj = createObject("Component","Website/MyData");
 
varObj="dataObj";
varMethod="getStateData()";
varName="someData";
 
 
// Now, i want to be able to call the CFC Dynamically, something like
 
'#varName#'=request["#varObj#"]["#varMethod#"];
 
//.#varMethod# doesnt work either.
 
</cfscript>
 
I am getting the below from the above code.
"Element getleftNavLinks is undefined in a Java object of type class coldfusion.runtime.TemplateProxy referenced as"
 
What am i missing?..
 
Thanks
Joe Eugene

Reply via email to