Thanks Dave, I too don't think it would be wise to mess with the
component.cfc. It would be great though to be able to extend multiple CFCs.

Thanks

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Dave Carabetta
Sent: Monday, October 06, 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Extending Multiple Components


>Is it possible to extend multiple components with one component? Is so,
>how?

Technically yes, but no. ;)

In CF (and JAVA), there is only single inheritance. However, with CF, you
can add methods to the /WEB-INF/cftags/component.cfc and all your
application CFCs will inherit from it as well as any super class you may
specify in your CFC (think java.lang.Object, which all JAVA classes
automatically inherit from).

However, as has been discussed on this list, it is not a good practice to do
this, and probably doesn't make sense to do based on what I think you're
trying to do. Ray Camden (I believe) has said that he'll put debugging
methods in that CFC in development, but that's really the only good use of
this trick that I've read as yet.

Regards,
Dave.

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word '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