... this strikes me as somewhat odd and I'm hoping someone
here has run into this already:

ColdFusion MX 6.1 Stand Alone - internal web server
Windows 2000 Server SP4

I have this CFC

ontap.cfc
<cfcomponent displayname="ontap">
  <cffunction name="tag" access="private">
    blah blah
  </cffunction>

  <cffunction name="getFunction" access="public">
    <cfmodule template="#this.tag('tapi')#" ...>
    <cfreturn true>
  </cffunction>
</cfcomponent>

temp.cfm
<cfobject name="ontap" component="ontap">
<cfset temp = ontap.getFunction('blah')>

I've removed everything but the pertinent bits from these
cfc's for the sake of explaining the problem... According to
the documentation ( http://livedocs.macromedia.com )
functions declared as private are supposed to be accessible
to the CFC which declares the function and any CFC's that
extend it. Now, if I use getMetaData() to view the metadata
for the CFC the private method shows up. However, if I call
the function ontap.getFunction() I get an error saying that
the CFC doesn't have a function called "tag" ... which...
according to getMetaData it does. It also doesn't show up if
I output the cfc as <cfdump var="#ontap#"> ...

If I change the access level of the tag function to package
or public, however, everything is hunky dory.

It seems that for all intents and purposes, specifying
access="private" essentially comments out the function so
that no code, no matter where it's placed or how its
referenced can ever call the method. ??? ... (except it
still shows up in the meta data)

I'm really confused. Is my server hozed. Has anyone else
seen this?

While I could live with them potentially being
access="package" or even public the nature of these
functions I'm working with is that they shouldn't ever be
called from anywhere other than the CFC that declared them
or a CFC that extends it (what the documentation says is the
definition of private), so it'd be really nice to be able to
use that.

s. isaac dealey                972-490-6624

team macromedia volunteer
http://www.macromedia.com/go/team

chief architect, tapestry cms  http://products.turnkey.to

onTap is open source           http://www.turnkey.to/ontap


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to