RE: Invoking component
Jeez, Sorry chaps, It would appear that my British Telecom SMTP server was playing up yesterday and duplicating the damn things, it 'appears' to be much better this morning. Sorry for all the trouble. Rob -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 22:26 To: CF-Talk Subject: Re: Invoking component >>Damn, I replied to the wrong thread . . and you've got a severe hiccup? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290846 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Invoking component
Use CFINVOKE to invoke static UDF in a CFC, without CreateObject? Henry >> Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So >> what is the best method? > >They are all equally good. > >> Or are there different situations where you would use one or >> the other? > >Yes, although you could simply use one in all cases if you really wanted to. >If you're creating objects, you'll probably want to use CreateObject; if >you're just invoking a method without explicitly instantiating an object >first, you might prefer using CFINVOKE. > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ > >Fig Leaf Software provides the highest caliber vendor-authorized >instruction at our training centers in Washington DC, Atlanta, >Chicago, Baltimore, Northern Virginia, or on-site at your location. >Visit http://training.figleaf.com/ for more information! ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290832 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Invoking component
Well I've received this post about 20 times so far today...are we done yet Michael?? ;-) Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com Notice: This message, including any attachments, is confidential and may contain information that is privileged or exempt from disclosure. It is intended only for the person to whom it is addressed unless expressly authorized otherwise by the sender. If you are not an authorized recipient, please notify the sender immediately and permanently destroy all copies of this message and attachments. - Original Message - From: "Robert Rawlins - Think Blue" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Wednesday, October 10, 2007 10:30 AM Subject: RE: Invoking component > Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! > > Rob ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290823 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Invoking component
>>Damn, I replied to the wrong thread . and you've got a severe hiccup? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290825 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
How bout that? -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 1:23 PM To: CF-Talk Subject: RE: Invoking component Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290824 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
And apparently replied many times as well. :) -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 12:43 PM To: CF-Talk Subject: RE: Invoking component Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290819 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290816 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290815 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290803 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290805 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290809 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290810 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290806 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290807 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290804 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Invoking component
You can also do this (and so much more heh) with onMissingMethod() in CF8: http://corfield.org/blog/index.cfm/do/blog.entry/entry/Automatic_Transactions_with_onMissingMethod On 10/10/07, Robert Rawlins - Think Blue < [EMAIL PROTECTED]> wrote: > > Thanks guys for your thoughts on this, > > you're all making good logical sense so I'll defiantly play around with > this > stuff. Interestingly enough I was reading an article from BarnyB just > yesterday about using AOP to control transactions, it might be a good > place > for me to learn a little more about implementing AOP, effectively killing > two birds with a single stone, learning AOP and adding transaction support > to my extended components. > > http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ > > Thanks again guys, I really appreciate it. > > Rob > > -Original Message- > From: Brian Kotek [mailto:[EMAIL PROTECTED] > Sent: 10 October 2007 16:54 > To: CF-Talk > Subject: Re: Invoking component > > The only real advantage that I'm aware of is that CFINVOKE allows you to > dynamically specify the target component and method. I use it when I need > that capability, but otherwise I find it too verbose. > > On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > > > OK, so I see that there are at least three ways to invoke a component. > > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > > best method? Or are there different situations where you would use one > > or the other? I would think that each has an advantage and disadvantage. > > I typically use CFINVOKE, although recently I have been using the > > CreateObject method in a CFSCRIPT tag. > > > > Bruce > > > > > > > > ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290790 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290808 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290800 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290802 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Damn, I replied to the wrong thread ... doh! Apologies for the hijacking! Rob -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 17:54 To: CF-Talk Subject: RE: Invoking component Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290799 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290791 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290789 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290786 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Invoking component
Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290787 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Thanks guys for your thoughts on this, you're all making good logical sense so I'll defiantly play around with this stuff. Interestingly enough I was reading an article from BarnyB just yesterday about using AOP to control transactions, it might be a good place for me to learn a little more about implementing AOP, effectively killing two birds with a single stone, learning AOP and adding transaction support to my extended components. http://www.barneyb.com/barneyblog/2006/10/22/transaction-advice/ Thanks again guys, I really appreciate it. Rob -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: 10 October 2007 16:54 To: CF-Talk Subject: Re: Invoking component The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290782 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
> Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So > what is the best method? They are all equally good. > Or are there different situations where you would use one or > the other? Yes, although you could simply use one in all cases if you really wanted to. If you're creating objects, you'll probably want to use CreateObject; if you're just invoking a method without explicitly instantiating an object first, you might prefer using CFINVOKE. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290776 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Invoking component
Cfinvoke _generally_ is only used when you want a single call against an object. If you want to store that object in memory then it's common to use CreateObject() with either a cfset or a cfscript call. Those last two are equivalent. -Original Message- From: Bruce Sorge [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 10:49 AM To: CF-Talk Subject: Invoking component OK, so I see that there are at least three ways to invoke a component. Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the best method? Or are there different situations where you would use one or the other? I would think that each has an advantage and disadvantage. I typically use CFINVOKE, although recently I have been using the CreateObject method in a CFSCRIPT tag. Bruce ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290778 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Invoking component
On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. http://www.coldfusionjedi.com/index.cfm/2007/4/15/Ask-a-Jedi-cfinvoke-and-createObject -- Matt Williams "It's the question that drives us." ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290773 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Invoking component
The only real advantage that I'm aware of is that CFINVOKE allows you to dynamically specify the target component and method. I use it when I need that capability, but otherwise I find it too verbose. On 10/10/07, Bruce Sorge <[EMAIL PROTECTED]> wrote: > > OK, so I see that there are at least three ways to invoke a component. > Using the CFINVOKE tag, CFSET and wrapped in CFSCRIPT. So what is the > best method? Or are there different situations where you would use one > or the other? I would think that each has an advantage and disadvantage. > I typically use CFINVOKE, although recently I have been using the > CreateObject method in a CFSCRIPT tag. > > Bruce > > ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290772 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4