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



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Adam Cameron
Sent: Thursday, January 22, 2004 12:42 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Calling SUPER methods


>> Have you tested that to work?
>Since Ben says that's how they do it, why would you assume it doesn't
work?

Two things:
1) I tried it: it doesn't work.
2) (Which I stated in my previous msg) It's still passing name/value
pairs.  Which the original error message claims to be the problem.  Is
the error message lying?

I ask because on a lot of CF forums I see, people dash off quick example
code that they figure *ought* to work, but actually doesn't.

Adam
----------------------------------------------------------
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]



----------------------------------------------------------
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