It's also worth noting that in that code example it shouldn't be necessary to have a COMPONENT attribute of CFINVOKE at all -- if you are invoking methods of the local component you don't need the COMPONENT attribute.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Raymond Camden > Sent: Monday, September 22, 2003 8:23 AM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] cfc question > > > When you pass a component instance to cfinvoke, it does NOT create a new > instance. Most examples of cfinvoke don't show this, so it's kind of > suprising to folks I think. > > ======================================================================== > === > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > (www.mindseye.com) > Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) > > Email : [EMAIL PROTECTED] > Blog : www.camdenfamily.com/morpheus/blog > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > [EMAIL PROTECTED] > > Sent: Monday, September 22, 2003 8:48 AM > > To: [EMAIL PROTECTED] > > Subject: [CFCDev] cfc question > > > > > > I've snipped out a piece of code from the contact manager > > example in MachII. I was studying this as an example for > > building a current app. I'm concerned about this line > > <cfinvoke component="#this#" method="setInfo" info="#arguments#" /> > > > > I see what its doing, but does this not create a new > > 'instance' of the component? So If say we have > > obj = CreateObkect("component", "contact.cfc"); > > obj.init(...arg list...); > > > > does the second line not create a new instance of contact.cfc > > when init() is called? or is init() not called in M2 apps at all? > > > > ---------------------------------------------------------- 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]
