Why not put those methods in an application or server scope? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Justin Balog Sent: Monday, October 06, 2003 10:56 AM To: '[EMAIL PROTECTED]' Subject: RE: [CFCDev] Extending Multiple Components
In response to the idea of putting methods in the /Web-inf/cftags/component.cfc. I was writing a serialize() and deserialize() to be used by all my cfcs. Is there any reasons to do/ or not to do this with these types of methods? Thanks, Justin -----Original Message----- From: Dave Carabetta [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 8: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. _________________________________________________________________ Share your photos without swamping your Inbox. Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es ---------------------------------------------------------- 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] ---------------------------------------------------------- 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] ---------------------------------------------------------- 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]
