Cheers mate.  I have no idea what all that does ;-) but I'll have a look
at it.

I've had a pokey around the undocumented methods of getPageContext(),
but it's been very trial and error (mostly "error", if I'm honest).

I always like to have a look at "interesting new stuff" though.

Adam

-----Original Message-----
From: Paul Kenney [mailto:[EMAIL PROTECTED] 
Sent: Friday, 23 January 2004 2:18 p.m.

Adam,

You got me. Sorry.  I didn't test it, before posting it... However I did
get it (or a very improved variation) to work.  
The only downside is that it makes use of undocumented methods of the
PageContext object that is returned by The CF Function
"GetPageContext()".

Here is the complete code below:

=================================================
<cfcomponent name="parent">
   <cffunction name="f" output="true" returntype="boolean">
      PARENT<br />
      <cfdump var="#arguments#">
      <cfreturn true>
   </cffunction>
</cfcomponent>


=================================================
<cfcomponent name="child" extends="parent">
   <cffunction name="f" output="true" returntype="boolean">
      <cfset var ret = true>
      <cfset var context = GetPageContext()>

      SUB<br />
                
      <cfset context.setVariableScope(context.getSuperScope())>
      <cfinvoke method="super.f" argumentcollection="#arguments#"
returnvariable="ret"/>
      <cfset context.setVariableScope(variables)>
                
      <cfreturn ret/>
   </cffunction>
</cfcomponent>


Call component method here:
=================================================
<cfinvoke component="child" method="f" arg1="value1" arg2="value2">


Paul Kenney
WebMaster, CorporateWarriors.com
916-663-1963

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to