Community Member Profile
- Profile: /members/2668-Judah.htm
- Comments: 4
- Points: 40
Recent Blog Comments By Judah
-
Comprehensive ColdFusion Component OnMissingMethod() Testing
Posted on Dec 12, 2008 at 12:35 PM
@Ben No, I don't think that the THIS scope gives access to the private function. I think it should though. Maybe. When I use my proxy function to dynamically call another method within the same component, what is the origin of the request? I guess it is outside the component, because that... read more »
-
Comprehensive ColdFusion Component OnMissingMethod() Testing
Posted on Dec 11, 2008 at 6:39 PM
@Ben - I just laid out a test case for your pondering and the answer is that it seems to be the same as calling the component from outside the object. Here's my test component: <cfcomponent name="test" output="false"> <cffunction name="init" access="public" output="fals... read more »
-
Comprehensive ColdFusion Component OnMissingMethod() Testing
Posted on Dec 11, 2008 at 6:03 PM
As a short follow up to my own comment, I also note that you can't use cfinvoke method="this.functionname" even if functionname is a function if that function is set to private. If the function is public, this.functionname works fine using cfinvoke. I can't decide if I think that is a bug o... read more »
-
Comprehensive ColdFusion Component OnMissingMethod() Testing
Posted on Dec 11, 2008 at 5:31 PM
As an update to this, you should look at how it behaves using cfinvoke. I've got a situation where I have a variable passed into my function and I want to call another function internal to that object that has the same name as the variable. Since I'm trying to call a dynamically named method, I a... read more »



