Re: simple question...cfmodule
Eric , are you saying that the 4th attribute never gets sent regardless of what it is called, or is it only if it called clientID. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351988 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
simple question...cfmodule
I really don't use cfmodule much so I have a question.so I added an attribute to the list and it doesn't seem to be passing the variable to the custom tag (I don't see it in the error dump.though I see the other vars in the attribute list). Does the server need to be restarted to make that show up? http://www.threeravensconsulting.com/ Description: threeravens_smblk http://www.threeravensconsulting.com/ Your ColdFusion Development Solution Eric Roberts Owner/Developer Three Ravens Consulting mailto:ow...@threeravensconsulting.com ow...@threeravensconsulting.com http://www.threeravensconsulting.com/ http://www.threeravensconsulting.com tel: 630-881-1515 https://www.plaxo.com/add_me?u=34360284618src=client_sig_212_1_banner_join invite=1lang=en Want to always have my latest info? http://www.plaxo.com/signature?src=client_sig_212_1_banner_siglang=en Want a signature like this? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351979 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: simple question...cfmodule
Nope. Do you have trusted cache turned on? On Tue, Jul 24, 2012 at 3:58 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I really don't use cfmodule much so I have a question.so I added an attribute to the list and it doesn't seem to be passing the variable to the custom tag (I don't see it in the error dump.though I see the other vars in the attribute list). Does the server need to be restarted to make that show up? http://www.threeravensconsulting.com/ Description: threeravens_smblk http://www.threeravensconsulting.com/ Your ColdFusion Development Solution Eric Roberts Owner/Developer Three Ravens Consulting mailto:ow...@threeravensconsulting.com ow...@threeravensconsulting.com http://www.threeravensconsulting.com/ http://www.threeravensconsulting.com tel: 630-881-1515 https://www.plaxo.com/add_me?u=34360284618src=client_sig_212_1_banner_join invite=1lang=en Want to always have my latest info? http://www.plaxo.com/signature?src=client_sig_212_1_banner_siglang=en Want a signature like this? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351980 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: simple question...cfmodule
Hey Eric, You shouldnt need to restart - can you show us the code you're using? -- Alan Rother Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org Twitter: @AlanRother ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351981 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: simple question...cfmodule
cfmodule template=#application.paths.includes#/meeting/MeetingFunctions.cfm action=GetSingle mode=full meetingID=#variables.meetingID# clientID=#variables.clientID# r_stMeeting=stMeeting ClientID doesn't come across as an attribute... I do see the other attributes and they have the expected values. Eric Roberts Owner/Developer Three Ravens Consulting ow...@threeravensconsulting.com http://www.threeravensconsulting.com tel: 630-881-1515 -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Tuesday, July 24, 2012 4:25 PM To: cf-talk Subject: Re: simple question...cfmodule Hey Eric, You shouldnt need to restart - can you show us the code you're using? -- Alan Rother Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org Twitter: @AlanRother ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351983 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: simple question...cfmodule
Hmm... There's nothing particularly weird about your tag... Are you literally doing cfdump var=#attributes# and not seeing the value? Also, what version of CF, is there a closing cfmodule tag and are you using any isolation in your module itself? You can isolate your cfmodule code by checking for which part of the cfmodule tag has been called like so cfif THISTAG.ExecutionMode IS Start/cfif Anything inside this CFIF would get executed when the CF processor hits the opening cfmodule tag cfif THISTAG.ExecutionMode IS End/cfif Anything inside this CFIF would only get executed IF and WHEN CF processed a closing tag or if the opening cfmodule tag was self closed cfmodule / Just as a baseline, add some other random attribute to the cfmodule, like foo=9 to see if it's making it through. On Tue, Jul 24, 2012 at 2:43 PM, Eric Roberts ow...@threeravensconsulting.com wrote: cfmodule template=#application.paths.includes#/meeting/MeetingFunctions.cfm action=GetSingle mode=full meetingID=#variables.meetingID# clientID=#variables.clientID# r_stMeeting=stMeeting ClientID doesn't come across as an attribute... I do see the other attributes and they have the expected values. Eric Roberts Owner/Developer Three Ravens Consulting ow...@threeravensconsulting.com http://www.threeravensconsulting.com tel: 630-881-1515 -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Tuesday, July 24, 2012 4:25 PM To: cf-talk Subject: Re: simple question...cfmodule Hey Eric, You shouldnt need to restart - can you show us the code you're using? -- Alan Rother Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org Twitter: @AlanRother ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351984 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: simple question...cfmodule
Is clientID a reserved word? Have you tested calling it something else? On 7/24/12 2:43 PM, Eric Roberts wrote: cfmodule template=#application.paths.includes#/meeting/MeetingFunctions.cfm action=GetSingle mode=full meetingID=#variables.meetingID# clientID=#variables.clientID# r_stMeeting=stMeeting ClientID doesn't come across as an attribute... I do see the other attributes and they have the expected values. Eric Roberts Owner/Developer Three Ravens Consulting ow...@threeravensconsulting.com http://www.threeravensconsulting.com tel: 630-881-1515 -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Tuesday, July 24, 2012 4:25 PM To: cf-talk Subject: Re: simple question...cfmodule Hey Eric, You shouldnt need to restart - can you show us the code you're using? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351985 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: simple question...cfmodule
Alan, I didn't think anything was wrong...it's just really odd behavior. I believe it's CF7 and no...no end tag. The custom tag is controlled by a case statement. I'll have to try the if's. I have hjust been banging my head agaisntt he desk for the past few hours trying to figure out why the value isn't getting passed. Jonah, Yes...and I didn't see them either. I know for fact it is the cfmodule tag getting executed because I can change the contents of the variables that are getting passed, oddly enough. As far as I know, clientid is not a reserved word. It is being used in another scope as part of a struct and that works fine Eric Roberts Owner/Developer Three Ravens Consulting ow...@threeravensconsulting.com http://www.threeravensconsulting.com tel: 630-881-1515 -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Tuesday, July 24, 2012 5:51 PM To: cf-talk Subject: Re: simple question...cfmodule Hmm... There's nothing particularly weird about your tag... Are you literally doing cfdump var=#attributes# and not seeing the value? Also, what version of CF, is there a closing cfmodule tag and are you using any isolation in your module itself? You can isolate your cfmodule code by checking for which part of the cfmodule tag has been called like so cfif THISTAG.ExecutionMode IS Start/cfif Anything inside this CFIF would get executed when the CF processor hits the opening cfmodule tag cfif THISTAG.ExecutionMode IS End/cfif Anything inside this CFIF would only get executed IF and WHEN CF processed a closing tag or if the opening cfmodule tag was self closed cfmodule / Just as a baseline, add some other random attribute to the cfmodule, like foo=9 to see if it's making it through. On Tue, Jul 24, 2012 at 2:43 PM, Eric Roberts ow...@threeravensconsulting.com wrote: cfmodule template=#application.paths.includes#/meeting/MeetingFunctions.cfm action=GetSingle mode=full meetingID=#variables.meetingID# clientID=#variables.clientID# r_stMeeting=stMeeting ClientID doesn't come across as an attribute... I do see the other attributes and they have the expected values. Eric Roberts Owner/Developer Three Ravens Consulting ow...@threeravensconsulting.com http://www.threeravensconsulting.com tel: 630-881-1515 -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Tuesday, July 24, 2012 4:25 PM To: cf-talk Subject: Re: simple question...cfmodule Hey Eric, You shouldnt need to restart - can you show us the code you're using? -- Alan Rother Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org Twitter: @AlanRother ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351986 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
OOM Error Looping cffunction that calls cfmodule
I have posted a test case on stackoverflow here: http://stackoverflow.com/questions/4628060/memory-leak-looping-cfmodule-inside-cffunction It's a very simple case, where if I comment out the cfmodule (which is an empty file), it runs without issue. Hoping someone else can verify or tell me what I'm doing wrong. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340566 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfmodule and query of queries
Hi all, This is probably a stupid question, but my simple mind can't figure it out. I'm trying to do the following: 1)Have a cfmodule that does a large query. 2)Have a series of cfmodules that do a query of query on the large query 3)Have a script that calls the cfmodules But I can't figure out how to pass the query from one module to another. I can do it if I use cfinclude, of course, since all the variables are accessible, but when I try to do it from cfmodule to cfmodule, the query of query modules can't access the large query because it's local to the first cfmodule. Is there away around this? T ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330489 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfmodule and query of queries
Set your query as caller.queryName is one way there are others. You should be using a CFC for this and returning the query probably. -Original Message- From: Thane Sherrington [mailto:th...@computerconnectionltd.com] Sent: Tuesday, February 09, 2010 7:57 AM To: cf-talk Subject: cfmodule and query of queries Hi all, This is probably a stupid question, but my simple mind can't figure it out. I'm trying to do the following: 1)Have a cfmodule that does a large query. 2)Have a series of cfmodules that do a query of query on the large query 3)Have a script that calls the cfmodules But I can't figure out how to pass the query from one module to another. I can do it if I use cfinclude, of course, since all the variables are accessible, but when I try to do it from cfmodule to cfmodule, the query of query modules can't access the large query because it's local to the first cfmodule. Is there away around this? T ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330490 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfmodule and query of queries
You should really be doing this in a CFC. They're built for stuff like this. Thanks, Eric Cobb http://www.cfgears.com ColdFusion - the most profitable dead language I've ever worked with. Thane Sherrington wrote: Hi all, This is probably a stupid question, but my simple mind can't figure it out. I'm trying to do the following: 1)Have a cfmodule that does a large query. 2)Have a series of cfmodules that do a query of query on the large query 3)Have a script that calls the cfmodules But I can't figure out how to pass the query from one module to another. I can do it if I use cfinclude, of course, since all the variables are accessible, but when I try to do it from cfmodule to cfmodule, the query of query modules can't access the large query because it's local to the first cfmodule. Is there away around this? T ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330491 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule and query of queries
But I can't figure out how to pass the query from one module to another. You can also set your query in the request scope, ie : request.MyQuery The request scope is visible in any module and sub modules. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330492 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfmodule
Inside of a CFM file that is called via CFModule. How do you scope the variables in the CFM files that is passed in via CFModule? I tried attributes.foo and it did not like that. Thanks! Chad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324533 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfmodule
Nevermind.. I had a typo! It is attributes. DOH! -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Wednesday, July 15, 2009 2:01 PM To: cf-talk Subject: cfmodule Inside of a CFM file that is called via CFModule. How do you scope the variables in the CFM files that is passed in via CFModule? I tried attributes.foo and it did not like that. Thanks! Chad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324534 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfmodule and fusebox
We're using fuse-q (based around fb 3?) And I'm trying to use cfmodule to redirect to another page.. Is the syntax: cfmodule template=../index.cfm fuseaction=usermanager.editor Or cfmodule template=../index.cfm attributes.fuseaction=usermanager.editor -- Scott Stewart ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (h) 919.874.6229 (c) 703.220.2835 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323129 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule and fusebox
The former. Attributes on the CFMODULE tag are passed to the custom tag in the attributes scope, exactly the same as any other custom tag invocation (CF_ prefix, CFIMPORT, CFMODULE name=...). myTag.cfm: cfparam name=attributes.name default=world / cfoutputHello, #attributes.name#!/cfoutput test.cfm: cfimport prefix=t taglib=/path/to/myTags/directory / cfmodule template=/path/to/myTags/directory/myTag.cfm name=Scott / t:myTag / cf_myTag name=barney / output: Hello Scott! Hello world! Hello barney! cheers, barneyb On Wed, Jun 3, 2009 at 1:25 PM, Scott Stewart sstwebwo...@bellsouth.net wrote: We're using fuse-q (based around fb 3?) And I'm trying to use cfmodule to redirect to another page.. Is the syntax: cfmodule template=../index.cfm fuseaction=usermanager.editor Or cfmodule template=../index.cfm attributes.fuseaction=usermanager.editor -- Scott Stewart ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (h) 919.874.6229 (c) 703.220.2835 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323130 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfmodule and fusebox
Thanks Barney.. Chalk this one up to end of day brain fart... -- Scott Stewart ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (h) 919.874.6229 (c) 703.220.2835 -Original Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Wednesday, June 03, 2009 4:30 PM To: cf-talk Subject: Re: cfmodule and fusebox The former. Attributes on the CFMODULE tag are passed to the custom tag in the attributes scope, exactly the same as any other custom tag invocation (CF_ prefix, CFIMPORT, CFMODULE name=...). myTag.cfm: cfparam name=attributes.name default=world / cfoutputHello, #attributes.name#!/cfoutput test.cfm: cfimport prefix=t taglib=/path/to/myTags/directory / cfmodule template=/path/to/myTags/directory/myTag.cfm name=Scott / t:myTag / cf_myTag name=barney / output: Hello Scott! Hello world! Hello barney! cheers, barneyb On Wed, Jun 3, 2009 at 1:25 PM, Scott Stewart sstwebwo...@bellsouth.net wrote: We're using fuse-q (based around fb 3?) And I'm trying to use cfmodule to redirect to another page.. Is the syntax: cfmodule template=../index.cfm fuseaction=usermanager.editor Or cfmodule template=../index.cfm attributes.fuseaction=usermanager.editor -- Scott Stewart ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (h) 919.874.6229 (c) 703.220.2835 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323131 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfmodule use
Hi all - I'm building this one template that I'd like to re-use in multiple sections of my application. In this case, it happens to be a display list. But I'd like to be able to toggle certain options of this display list: So for example, assuming this is all the data my template displays: ID GuruActions 1 Ben edit delete 2 Ray edit delete 3 Brian edit delete I'd like to be able to tell the template whether to include certain things: includeID (boolean -- whether or not to display the ID column) highlightIDlist (integer list -- which user(s) to highlight) includeActions (boolean -- whether or not to display the action links) I've seen cfmodule used in a couple of the sites I've worked on, and it seems to have the functionality I'm looking for -- but I was wondering if there were alternate methods (better hopefully :)) I could be exploring? Thanks! Jonathon ~| 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:285831 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule use
CFMODULE is basically just another way to call a custom tag, with the main differentiator being that the template name can be dynamic. I'd recommend packaging your widget as a custom tag, and using it via the CFIMPORT syntax. It's not really any different in terms of the code you'll write, but the usage of it will be cleaner (IMHO). cheers, barneyb On 8/9/07, Jonathon Stierman [EMAIL PROTECTED] wrote: Hi all - I'm building this one template that I'd like to re-use in multiple sections of my application. In this case, it happens to be a display list. But I'd like to be able to toggle certain options of this display list: So for example, assuming this is all the data my template displays: ID GuruActions 1 Ben edit delete 2 Ray edit delete 3 Brian edit delete I'd like to be able to tell the template whether to include certain things: includeID (boolean -- whether or not to display the ID column) highlightIDlist (integer list -- which user(s) to highlight) includeActions (boolean -- whether or not to display the action links) I've seen cfmodule used in a couple of the sites I've worked on, and it seems to have the functionality I'm looking for -- but I was wondering if there were alternate methods (better hopefully :)) I could be exploring? Thanks! Jonathon -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| 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:285834 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfmodule use
I'd say CFMODULE (I used to use it for a similar task back around version 5) should work for you, but you could also write a custom tag (with the attributes you mentioned) or even a CFC Aren't options greatnow you have to pick one ;-) Cheers 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. ~| 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=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285835 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfmodule use
I've got a working version using cfmodule now -- thankfully it was pretty easy. The whole start tag/end tag thing threw me a curveball (why the blazes is this displaying twice??), but it's up and running. Questions on the custom-tag. Is there any performance difference between this setup and the cfmodule tag? I'm passing very site-specific objects to my module, which makes me reluctant to have it stored in a global location accessible by all sites on the server. So at the moment, I'm prefering the manual cfmodule calls to a registered custom-tag. As for putting it inside a CFC. I like this idea the most, but I'm hesitant to put display HTML code (which is essentially the point of this module) inside a CFC. I'd love your input on this. I've always been a don't-include-HTML-inside-your-CFC's kind of guy -- but I'm wondering whether you guys would consider this better than the custom-tag solution? Would it irk you to see display HTML inside a CFC? Jonathon -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 10:47 AM To: CF-Talk Subject: Re: cfmodule use I'd say CFMODULE (I used to use it for a similar task back around version 5) should work for you, but you could also write a custom tag (with the attributes you mentioned) or even a CFC Aren't options greatnow you have to pick one ;-) Cheers 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. ~| 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:285844 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule use
Speed should be the same or darn close.there may have a been a time this wasn't true...but I believe it is now. I'm passing very site-specific objects to my module, which makes me reluctant to have it stored in a global location accessible by all sites on the server. So at the moment, I'm prefering the manual cfmodule calls to a registered custom-tag. You could put the custom tag template in the directory it's being called from instead of the default custom tags directory...then only you have access to it. Cheers 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: Jonathon Stierman [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, August 09, 2007 9:19 AM Subject: RE: cfmodule use I've got a working version using cfmodule now -- thankfully it was pretty easy. The whole start tag/end tag thing threw me a curveball (why the blazes is this displaying twice??), but it's up and running. Questions on the custom-tag. Is there any performance difference between this setup and the cfmodule tag? I'm passing very site-specific objects to my module, which makes me reluctant to have it stored in a global location accessible by all sites on the server. So at the moment, I'm prefering the manual cfmodule calls to a registered custom-tag. As for putting it inside a CFC. I like this idea the most, but I'm hesitant to put display HTML code (which is essentially the point of this module) inside a CFC. I'd love your input on this. I've always been a don't-include-HTML-inside-your-CFC's kind of guy -- but I'm wondering whether you guys would consider this better than the custom-tag solution? Would it irk you to see display HTML inside a CFC? Jonathon -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 10:47 AM To: CF-Talk Subject: Re: cfmodule use I'd say CFMODULE (I used to use it for a similar task back around version 5) should work for you, but you could also write a custom tag (with the attributes you mentioned) or even a CFC Aren't options greatnow you have to pick one ;-) Cheers 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. ~| 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-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285847 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule use
On 8/9/07, Jonathon Stierman [EMAIL PROTECTED] wrote: Questions on the custom-tag. Is there any performance difference between this setup and the cfmodule tag? Nope. I'm passing very site-specific objects to my module, which makes me reluctant to have it stored in a global location accessible by all sites on the server. If you use CFIMPORT (instead of a custom tag registration), you can get around the issue. I usually have a 'tags' folder (watch VC config!) at the root of my applications to house tags local to the application, and then CFIMPORT them via the approot CF mapping. As for putting it inside a CFC. I like this idea the most, but I'm hesitant to put display HTML code (which is essentially the point of this module) inside a CFC. I'd love your input on this. I prefer to have my UI be CFC-free. UDFs where I need functions, tags (called with CFIMPORT) for where I need widgets, and then just a bunch of simple CFML. Rendering UIs (server-side) is generally a pretty procedural process, so I think a totally procedural paradigm is the best fit for the task. Mix in CFCs, and you suddenly have to deal with return variables rather than text output and no access to the variables scope, among other things. cheers, barneyb -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| 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:285848 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfmodule use
Questions on the custom-tag. Is there any performance difference between this setup and the cfmodule tag? No, I don't think so. Any performance difference in finding a file one place vs another will be insignificant. Would it irk you to see display HTML inside a CFC? No, there's nothing wrong with that. Make sure you set the OUTPUT attribute appropriately in either case. Personally, I think custom tags are better suited for generating output, but it's largely a matter of personal preference. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| 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:285850 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfmodule use
Mix in CFCs, and you suddenly have to deal with return variables rather than text output and no access to the variables scope, among other things. You can output text from within a CFC instead of (or in addition to) returning a value. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| 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:285851 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfmodule use
On 8/9/07, Dave Watts [EMAIL PROTECTED] wrote: You can output text from within a CFC instead of (or in addition to) returning a value. I know you CAN, but whether you SHOULD is a different question. Whatever your personal opinion is, it's still a weirdness that has to be dealt with. I generally prefer this approach: cfcomponent cffunction ... output=false returntype=string cfset var result = / cfsavecontent variable=result ... stuff to output ... /cfsavecontent cfreturn result / /cffunction /cfcomponent That way you can do either of these: cfoutput#cfc.method()#/cfoutput cfset output = cfc.method() / If you output directly, then you can't do the latter, then the two lines are semantically identical (the write to the output) and `output` will be empty/null. That's a drastically different set of circumstances to typical CFC usage, which in my mind, makes it a Bad Thing. cheers, barneyb -- Barney Boisvert [EMAIL PROTECTED] http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| 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:285853 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfmodule use
I know you CAN, but whether you SHOULD is a different question. I haven't seen any arguments why you shouldn't that go beyond it doesn't look/feel right. Whatever your personal opinion is, it's still a weirdness that has to be dealt with. How is that a weirdness? There's an OUTPUT attribute, it's presumably there for a reason. That's a drastically different set of circumstances to typical CFC usage, which in my mind, makes it a Bad Thing. If you write a CFC method intended to explicitly generate output, you will presumably be smart enough to know how that can be successfully invoked. And different from your convention is not necessarily equivalent to bad thing. 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! This email has been processed by SmoothZap - www.smoothwall.net ~| 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:285858 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfmodule use
Thanks for the help guys! I am going to continue on with the cfmodule track and use the cfimport tag to help me manage them. I'm more familiar working with CFC's than cfmodules, which makes me *want* to use CFCs for this, but I think the cfmodule tag is a better fit in the end for me. At the very least, it'll keep my designers from having to open my CFC's (they will have to update the design in the module later). Jonathon ~| 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:285859 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) Can someone straighten me out as to the pros and cons of cfimport, cf_MyTag, and cfmodule? Thanks, Jamie ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272394 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
CFImport allows you to create tag prefixes. You can also use a template path (which cf_tagname does not have). I think it's a very elegant way to group tag functionality. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Jamie Jackson [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 3:39 PM To: CF-Talk Subject: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) Can someone straighten me out as to the pros and cons of cfimport, cf_MyTag, and cfmodule? Thanks, Jamie ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272396 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
As a negative to this positive, every CFM that wants to use this format has to have a cfimport, while cf_/cfmodule just works fine. This is a very minor negative though. Just making sure you know. On 3/12/07, Ben Nadel [EMAIL PROTECTED] wrote: CFImport allows you to create tag prefixes. You can also use a template path (which cf_tagname does not have). I think it's a very elegant way to group tag functionality. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Jamie Jackson [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 3:39 PM To: CF-Talk Subject: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) Can someone straighten me out as to the pros and cons of cfimport, cf_MyTag, and cfmodule? Thanks, Jamie ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272397 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
Very true. Also, I know that CFImport cannot have dynamic template path (ie. No ## in the template attribute). Not sure if CFModule is the same way (but I guess that it probably is). .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 4:08 PM To: CF-Talk Subject: Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls As a negative to this positive, every CFM that wants to use this format has to have a cfimport, while cf_/cfmodule just works fine. This is a very minor negative though. Just making sure you know. ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272398 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
Jamie Jackson wrote: I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. cfimport is a compile-time directive and does not have an execution time overhead (but your compiled template will be inflated). (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) It does as long as they are defined at compile time. Jochem ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272399 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
cfmodule has no problem whatsoever with dynamic template paths. :-) Very true. Also, I know that CFImport cannot have dynamic template path (ie. No ## in the template attribute). Not sure if CFModule is the same way (but I guess that it probably is). .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272484 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Calling cfmodule from within a CFC
Is it safe to call cfmodule from within a CFC stored in the application scope? I think the example below is safe because the custom tag only manipulates the caller's var scope. Can anybody see any other problems? !--- MyComponent.cfc --- cfcomponent cffunction name=init access=public output=true returntype=MyComponent cfreturn this/ /cffunction cffunction name=runCustomTag returntype=date output=true cfset var tagOutput = / cfmodule template=MyCustomTag.cfm outputVariable=tagOutput / cfreturn tagOutput/ /cffunction /cfcomponent !--- MyCustomTag.cfm --- cfparam name=Attributes.outputVariable type=string/ cfset Caller[attributes.outputVariable] = now()/ cfexit method=exittag/ Janet ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271539 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Calling cfmodule from within a CFC
It is as long as it is thread safe... But to be honest I wouldn't do it. On 3/6/07, Janet MacKay [EMAIL PROTECTED] wrote: Is it safe to call cfmodule from within a CFC stored in the application scope? I think the example below is safe because the custom tag only manipulates the caller's var scope. Can anybody see any other problems? !--- MyComponent.cfc --- cfcomponent cffunction name=init access=public output=true returntype=MyComponent cfreturn this/ /cffunction cffunction name=runCustomTag returntype=date output=true cfset var tagOutput = / cfmodule template=MyCustomTag.cfm outputVariable=tagOutput / cfreturn tagOutput/ /cffunction /cfcomponent !--- MyCustomTag.cfm --- cfparam name=Attributes.outputVariable type=string/ cfset Caller[attributes.outputVariable] = now()/ cfexit method=exittag/ Janet ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271630 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Calling cfmodule from within a CFC
It is as long as it is thread safe... But to be honest I wouldn't do it. I would rather not either. I have an old application with a lot of pre-mx code and lots of cfmodule calls. Its going to take a while to convert it all to cfcs. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271632 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Calling cfmodule from within a CFC
Is it safe to call cfmodule from within a CFC stored in the application scope? I think the example below is safe because the custom tag only manipulates the caller's var scope. Can anybody see any other problems? !--- MyComponent.cfc --- cfcomponent cffunction name=init access=public output=true returntype=MyComponent cfreturn this/ /cffunction cffunction name=runCustomTag returntype=date output=true cfset var tagOutput = / cfmodule template=MyCustomTag.cfm outputVariable=tagOutput / cfreturn tagOutput/ /cffunction /cfcomponent !--- MyCustomTag.cfm --- cfparam name=Attributes.outputVariable type=string/ cfset Caller[attributes.outputVariable] = now()/ cfexit method=exittag/ There's nothing inherently unsafe about using a custom tag within a component, but it appears that your custom tag returns a value to the component; generally, this kind of logic is better written as a function or a separate component in its own right. 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! ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271646 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Calling cfmodule from within a CFC
generally, this kind of logic is better written as a function or a separate component in its own right. You mean as a function in the same component? (And yes, re-writing the tags as separate components is the ultimate goal) Janet ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271652 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Calling cfmodule from within a CFC
generally, this kind of logic is better written as a function or a separate component in its own right. You mean as a function in the same component? Perhaps, or perhaps as a function within another component - it really depends on what it's supposed to do. 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! ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271659 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Calling cfmodule from within a CFC
You mean as a function in the same component? Perhaps, or perhaps as a function within another component - it really depends on what it's supposed to do. Gotcha. Thanks for the input. Janet ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271664 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfmodule advice...
CFCs for display/Layout? Tut tut... :-) Hey, I was given a prescription to do it, from the doctor of OO. :) ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271394 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule advice...
Sweet! Preeesh Ray... Will ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271395 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cfmodule advice...
I'm writin a site old school using custom tags, and wanted to if there's a best way to invoke the tag. I hardly ever use them... cfmodule template=CustomTags/header.cfm title=CAP Home This is just handling page layout. I'll have a footer, left menu, etc. I usually use CFC's for all this, but decided to write this site different. Thanks, Will ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271379 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule advice...
Yes, this is right. I'd suggest self closing the tag as well. cfmodule / And, if you don't want your tag to run twice, add cfexit method=exittag to the end of your custom tag. On 3/2/07, Will Tomlinson [EMAIL PROTECTED] wrote: I'm writin a site old school using custom tags, and wanted to if there's a best way to invoke the tag. I hardly ever use them... cfmodule template=CustomTags/header.cfm title=CAP Home This is just handling page layout. I'll have a footer, left menu, etc. I usually use CFC's for all this, but decided to write this site different. Thanks, Will ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271385 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule advice...
And, if you don't want your tag to run twice, add cfexit method=exittag to the end of your custom tag. I never knew about that one. I just tried it. Sure enough .. the tag runs twice without the cfexit method=exittag. Learn something new everyday. Thanks for the tip! Janet ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271387 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfmodule advice...
Will, Another approach would be to use cfimport which I personally prefer and it is supposed to be a bit faster (I could be wrong). In addition to Ray's suggestion, you can definitely do something like this if you do not want tag to run twice cfif thisTag.ExecutionMode eq 'start' your code goes here /cfif HTH On 3/2/07, Janet MacKay [EMAIL PROTECTED] wrote: And, if you don't want your tag to run twice, add cfexit method=exittag to the end of your custom tag. I never knew about that one. I just tried it. Sure enough .. the tag runs twice without the cfexit method=exittag. Learn something new everyday. Thanks for the tip! Janet ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271388 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfmodule advice...
CFCs for display/Layout? Tut tut... :-) This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Will Tomlinson To: CF-Talk Sent: Fri Mar 02 23:31:11 2007 Subject: cfmodule advice... I'm writin a site old school using custom tags, and wanted to if there's a best way to invoke the tag. I hardly ever use them... cfmodule template=CustomTags/header.cfm title=CAP Home This is just handling page layout. I'll have a footer, left menu, etc. I usually use CFC's for all this, but decided to write this site different. Thanks, Will ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271391 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Cfmodule using Name attribute vs. template attribute
Ok what are the major and minor reasons for using the template attribute over the name attribute in the cfmodule tag (and vice versa if it suits you). thanks in advance ERJ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257788 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Cfmodule using Name attribute vs. template attribute
Template specifies a template (a la CFINCLUDE), while name supplies a tag name (a la CF_TAGNAME). In general, however I'd recommend using CFIMPORT over CFMODULE. cheers, barneyb On 10/23/06, jonese [EMAIL PROTECTED] wrote: Ok what are the major and minor reasons for using the template attribute over the name attribute in the cfmodule tag (and vice versa if it suits you). thanks in advance ERJ -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257789 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfmodule and CFCs?
I'm trying to use cfmodule to do some HTML layout from within a CFC. Here's the code inside the CFC: --- cffunction name cfmodule template=/templates/template_main.cfm cfoutput Some generated output from the function. /cfoutput /cfmodule /cffunction This is some example code from template_main.cfm: cfsetting enablecfoutputonly=yes cfif thisTag.executionMode is start cfoutput html /cfoutput /cfelse cfoutput /html /cfoutput /cfif cfsetting enablecfoutputonly=no - What I would expect would be HTML that looks like: html Some generated output from the function. /html But instead I receive a ColdFusion error, Context validation error for tag cfif. The error occurred in C:\CFusionMX\wwwroot\templates\template_main.cfm: line 2 1 : 2 : cfif thisTag.executionMode is start 3 : cfoutput I know I must be mis-using the cfmodule, but I'm pretty stuck on what I'm doing wrong. Any ideas would be greatly appreciated! Thanks, Chris ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233653 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfmodule and CFCs?
/cfelse That should not have a closing slash. 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! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233654 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfmodule and CFCs?
Wow, do I feel stupid. I thought I went over this code with a fine-tooth comb, but I guess not. Thanks for the help! Chris /cfelse That should not have a closing slash. 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! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233656 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: page layout: cfmodule vs customtags
I did give the OO/CFC based methodology (model-glue to be specific) a go, but I came to the conclusion that this really defeats the purpose of what a web page is for. It is over complicating something that should be simple. A web page should be just that and be able to be opened in a WYSIWYG edit by a designer and edited. Putting everything into CFC's just really stops a web site being a web site any more. There is no way a designer can ever work on it unless he learns to code, it is also not very friendly toward other developers, who have to know OO and the framework before they can work on it. It really is more like software development. I got one of our developers to build a model-glue site, and then myself and one of the other developers tried to go and figure it out with no prior knowledge of model-glue, suffice to say it was very hard. And debugging is seriously time wasting trying to find out what actually caused the error, because the errors don't actually tell you. CFC's are great when used correctly, but I do not not agree with building a whole web site with CFC's, its too much obscurity. I also noticed that model-glue runs very slow, the site we built with it takes several seconds for each page to load off the local network. Russ -Original Message- From: Steve Bryant [mailto:[EMAIL PROTECTED] Sent: 13 February 2006 04:35 To: CF-Talk Subject: Re: page layout: cfmodule vs customtags I like using using components for layouts as well. Even wrote an article about it. ;-) http://coldfusion.sys-con.com/read/154231.htm Steve I do this in some cases and see nothing wrong with taking that approach. It usually is in its own separate CFC just for layout purposes but not always. On 2/12/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I've even started using CFCs to hold some 'pods' of content that I use in various places. This idea'll start a firestorm from those who say CFCs should never output, but they're wrong anyway. :) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232096 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
dave wrote: I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. neither. I use cfinclude for page layout ;) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232101 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: page layout: cfmodule vs customtags
We use a similar CFC-based system. It allows you to easily do things like switch layouts, or have several layouts per application. We use a xml file to define what directories receive a particular skin, and the call just remains #request.layout.header()#, etc on each page. Completely separates the presentation of headers and such from the content. As for output from CFCs yes I'm against using output=true. There's no real reason the CFC itself should *force* output text onto a page. That said, the pattern of returning a string and then outputting the function call as a variable (like I showed above) is more flexible and (imo) not breaking OOP principles. Kam -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Sunday, February 12, 2006 4:15 PM To: CF-Talk Subject: Re: page layout: cfmodule vs customtags I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. Layout.cfc - showHeader(), showLeftMenu(), showFooter() Works sweet! Screw custom tags! :) Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232115 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
page layout: cfmodule vs customtags
I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232070 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
You are aware, I hope, that when you use cfmodule, you are using custom tags. On 2/12/06, dave [EMAIL PROTECTED] wrote: I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232071 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
I think custom tags are marginally easier to read from a human perspective, but cfmodule is more flexible as you don't need a defined custom tag path. 6 vs half a dozen :) On 2/13/06, dave [EMAIL PROTECTED] wrote: I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. -- Kay Smoljak http://kay.zombiecoder.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232072 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
Personally, I use CFINCLUDEs for most of my layout. Less overhead, though less of that nice clean variable passing that custom tags/cfmodules have. I've even started using CFCs to hold some 'pods' of content that I use in various places. This idea'll start a firestorm from those who say CFCs should never output, but they're wrong anyway. :) I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232073 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
you know what i mean ray. ok lets rephrase thats cfmodule vs cfimport ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Raymond Camden [EMAIL PROTECTED] Sent: Sunday, February 12, 2006 5:25 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags You are aware, I hope, that when you use cfmodule, you are using custom tags. On 2/12/06, dave wrote: I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232074 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
but that limits you greatly, one reason I would use cfmodule is to be able to set variables and attributes such as title easier which is essential for search engines. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: [EMAIL PROTECTED] (Michael Dinowitz) Sent: Sunday, February 12, 2006 5:46 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags Personally, I use CFINCLUDEs for most of my layout. Less overhead, though less of that nice clean variable passing that custom tags/cfmodules have. I've even started using CFCs to hold some 'pods' of content that I use in various places. This idea'll start a firestorm from those who say CFCs should never output, but they're wrong anyway. :) I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232075 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
All depends on how your setting the title and other header info. I have sub-includes per section that see the section and uses a switch to put the right header info in place. For the lists, the header comes from the DB anyway so nothing passed. My issue against custom tags is that they are a separate cf 'instance' which is segmented from the calling page. This means that it has all of the CGI, form, url, etc. variables set for the page are duplicated for this new 'instance'. More memory usage. If all I need is to pass in a specific variable, I can just do a CFSET before the CFINCLUDE. The choice is a set before the include which is part of the calling page or a new page which has lots of data passed into it. I'm for the first. I only use custom tags when I really want a segmented module call. but that limits you greatly, one reason I would use cfmodule is to be able to set variables and attributes such as title easier which is essential for search engines. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: [EMAIL PROTECTED] (Michael Dinowitz) Sent: Sunday, February 12, 2006 5:46 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags Personally, I use CFINCLUDEs for most of my layout. Less overhead, though less of that nice clean variable passing that custom tags/cfmodules have. I've even started using CFCs to hold some 'pods' of content that I use in various places. This idea'll start a firestorm from those who say CFCs should never output, but they're wrong anyway. :) I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232076 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
I do this in some cases and see nothing wrong with taking that approach. It usually is in its own separate CFC just for layout purposes but not always. On 2/12/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I've even started using CFCs to hold some 'pods' of content that I use in various places. This idea'll start a firestorm from those who say CFCs should never output, but they're wrong anyway. :) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232078 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
cfimport is quicker I believe than cfmodule from a processing point of view. On 2/12/06, dave [EMAIL PROTECTED] wrote: you know what i mean ray. ok lets rephrase thats cfmodule vs cfimport ~Dave the disruptor~ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232079 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. Layout.cfc - showHeader(), showLeftMenu(), showFooter() Works sweet! Screw custom tags! :) Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232081 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
You are aware, I hope, that when you use cfmodule, you are using custom tags. Ray, I seriously doubt it! LOL!! Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232082 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
Yeah Will and I have seen your layout.cfc and why use a cool tool like coldfusion to make a template that looks like it was made by a deaf, dumb blind kid using frontpage 97... And you wonder why you can't get any new clients... ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Will Tomlinson [EMAIL PROTECTED] Sent: Sunday, February 12, 2006 8:15 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. Layout.cfc - showHeader(), showLeftMenu(), showFooter() Works sweet! Screw custom tags! :) Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232083 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
Will, you don't even know what a custom tag is let not to mention when u saw some code i had about a month ago with cfmodule, you didnt even know what cfmodule was. And that was after you said wow, i really am an advanced coldfusion developer arent i after you did your very first cfset without looking at cfwack. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Will Tomlinson [EMAIL PROTECTED] Sent: Sunday, February 12, 2006 8:17 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags You are aware, I hope, that when you use cfmodule, you are using custom tags. Ray, I seriously doubt it! LOL!! Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232084 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: page layout: cfmodule vs customtags
Why you must constantly subject us to your personal issues against Will? If you have a problem with Will, put it on your blog and keep this list related to CF topics, please. -Original Message- From: dave [mailto:[EMAIL PROTECTED] Sent: Sunday, February 12, 2006 7:31 PM To: CF-Talk Subject: Re: page layout: cfmodule vs customtags Will, you don't even know what a custom tag is let not to mention when u saw some code i had about a month ago with cfmodule, you didnt even know what cfmodule was. And that was after you said wow, i really am an advanced coldfusion developer arent i after you did your very first cfset without looking at cfwack. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232086 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
Actually, I didn't. ;) I'm not sure you would see much difference. I know some folks consider custom tags to be a bit slower than normal includes, and yes, they are, but I've rarely seen that make a difference. About the only time i saw an impact w/ custom tags is with Spectra, which executed about 200 tags or so per request. On 2/12/06, dave [EMAIL PROTECTED] wrote: you know what i mean ray. ok lets rephrase thats cfmodule vs cfimport ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Raymond Camden [EMAIL PROTECTED] Sent: Sunday, February 12, 2006 5:25 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags You are aware, I hope, that when you use cfmodule, you are using custom tags. On 2/12/06, dave wrote: I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232087 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: page layout: cfmodule vs customtags
Well if he does it, i will respond back, is that so hard for you to understand? Why don't you go bitch at him for having to say something to start it. In case you didn't notice that doesn't happen till he tries one oh his like remarks. oh and I do.. ;) ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Dawson, Michael [EMAIL PROTECTED] Sent: Sunday, February 12, 2006 8:52 PM To: CF-Talk cf-talk@houseoffusion.com Subject: RE: page layout: cfmodule vs customtags Why you must constantly subject us to your personal issues against Will? If you have a problem with Will, put it on your blog and keep this list related to CF topics, please. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232088 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
See now thats different then what I have heard but the speed issue is really a non issue because its probably a difference the naked eye can't even detect. It seems though as if using cfimport method actually might make it a bit more difficult to use or display results from logic or processing and display back. Maybe it's just time to jump into model-glue. ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Raymond Camden [EMAIL PROTECTED] Sent: Sunday, February 12, 2006 8:58 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags Actually, I didn't. ;) I'm not sure you would see much difference. I know some folks consider custom tags to be a bit slower than normal includes, and yes, they are, but I've rarely seen that make a difference. About the only time i saw an impact w/ custom tags is with Spectra, which executed about 200 tags or so per request. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232089 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
How about you both bitch to me privatly rather than disrupting the list with with is basically off topic BS. Now you know what I feel about OT. If it has nothing to do with the discussion at hand, take it to another list or to personal email. I can and will write a moderation module that targets only you two if I have too. Lets keep it civil AND ON TOPIC FOR THIS TECHNICAL ONLY MAILING LIST. Thank you Well if he does it, i will respond back, is that so hard for you to understand? Why don't you go bitch at him for having to say something to start it. In case you didn't notice that doesn't happen till he tries one oh his like remarks. oh and I do.. ;) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232090 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: page layout: cfmodule vs customtags
Now children...hehehe Eric -Original Message- From: dave [mailto:[EMAIL PROTECTED] Sent: Sunday, 12 February 2006 19:34 To: CF-Talk Subject: Re: page layout: cfmodule vs customtags Yeah Will and I have seen your layout.cfc and why use a cool tool like coldfusion to make a template that looks like it was made by a deaf, dumb blind kid using frontpage 97... And you wonder why you can't get any new clients... ~Dave the disruptor~ I forgot what I was gunna put here, Will woulda stole it anyways! From: Will Tomlinson [EMAIL PROTECTED] Sent: Sunday, February 12, 2006 8:15 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: page layout: cfmodule vs customtags I been using cfmodule for my page layouts but am making my current project with customtags am curious what your opinions are on each and why you'd pick one over the other. Layout.cfc - showHeader(), showLeftMenu(), showFooter() Works sweet! Screw custom tags! :) Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232093 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: page layout: cfmodule vs customtags
I like using using components for layouts as well. Even wrote an article about it. ;-) http://coldfusion.sys-con.com/read/154231.htm Steve I do this in some cases and see nothing wrong with taking that approach. It usually is in its own separate CFC just for layout purposes but not always. On 2/12/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I've even started using CFCs to hold some 'pods' of content that I use in various places. This idea'll start a firestorm from those who say CFCs should never output, but they're wrong anyway. :) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232094 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CFMX 7 CFMODULE
Does anyone know why a CFMODULE call does not perform the same as it did on CF5 and CF6.1 ? In CFMX7 it is as if the call never happens. Thanks! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224774 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CFMX 7 CFMODULE
Cfmodule should work the same in CF7 as in CF6. However, I've had some users of custom tags of mine reporting issues like that. I haven't been able to replicate the issue and for other reasons I've had trouble working with the users to explore the problem. If you use cf_ or cfimport styles to call custom tags do you get the same failure or does it work? -Original Message- From: ColdFusion Developer [mailto:[EMAIL PROTECTED] Sent: Monday, 21 November 2005 1:33 p.m. To: CF-Talk Subject: CFMX 7 CFMODULE Does anyone know why a CFMODULE call does not perform the same as it did on CF5 and CF6.1 ? In CFMX7 it is as if the call never happens. Thanks! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224780 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CFMX 7 CFMODULE
Actually it is a simple call: CFMODULE TEMPLATE=dir_actions.cfm ACTION=LIST DIRECTORY=#REQUEST.DIRECTORY_PATH# The dir_actions.cfm resides in the same directory (there are no subdirectories) And the REQUEST.DIRECTORY_PATH variable is valid and does exists. Inside the tag, it does a simple CFDIRECTORY call and then does a QoQ to sort the directories by name (since CFDIRECTORY does not do that). Then I set the QuerySet to CALLER.THEDIR and nothing is returned. I get the error THEDIR does not exist. -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: Sunday, November 20, 2005 7:54 PM To: CF-Talk Subject: RE: CFMX 7 CFMODULE Cfmodule should work the same in CF7 as in CF6. However, I've had some users of custom tags of mine reporting issues like that. I haven't been able to replicate the issue and for other reasons I've had trouble working with the users to explore the problem. If you use cf_ or cfimport styles to call custom tags do you get the same failure or does it work? -Original Message- From: ColdFusion Developer [mailto:[EMAIL PROTECTED] Sent: Monday, 21 November 2005 1:33 p.m. To: CF-Talk Subject: CFMX 7 CFMODULE Does anyone know why a CFMODULE call does not perform the same as it did on CF5 and CF6.1 ? In CFMX7 it is as if the call never happens. Thanks! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224782 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CFMX 7 CFMODULE
Sure, so what happens if you replace your cfmodule with: CF_dir_actions ACTION=LIST DIRECTORY=#REQUEST.DIRECTORY_PATH# -Original Message- From: ColdFusion Developer [mailto:[EMAIL PROTECTED] Sent: Monday, 21 November 2005 2:15 p.m. To: CF-Talk Subject: RE: CFMX 7 CFMODULE Actually it is a simple call: CFMODULE TEMPLATE=dir_actions.cfm ACTION=LIST DIRECTORY=#REQUEST.DIRECTORY_PATH# The dir_actions.cfm resides in the same directory (there are no subdirectories) And the REQUEST.DIRECTORY_PATH variable is valid and does exists. Inside the tag, it does a simple CFDIRECTORY call and then does a QoQ to sort the directories by name (since CFDIRECTORY does not do that). Then I set the QuerySet to CALLER.THEDIR and nothing is returned. I get the error THEDIR does not exist. -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: Sunday, November 20, 2005 7:54 PM To: CF-Talk Subject: RE: CFMX 7 CFMODULE Cfmodule should work the same in CF7 as in CF6. However, I've had some users of custom tags of mine reporting issues like that. I haven't been able to replicate the issue and for other reasons I've had trouble working with the users to explore the problem. If you use cf_ or cfimport styles to call custom tags do you get the same failure or does it work? -Original Message- From: ColdFusion Developer [mailto:[EMAIL PROTECTED] Sent: Monday, 21 November 2005 1:33 p.m. To: CF-Talk Subject: CFMX 7 CFMODULE Does anyone know why a CFMODULE call does not perform the same as it did on CF5 and CF6.1 ? In CFMX7 it is as if the call never happens. Thanks! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224787 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
cfinclude or cfmodule in Application.cfc
should be simple but is driving me nuts!! ( i feel like will!) k in app.cfc I want to include headers and footers but since app.cfc runs in the template thats requested the path changes so you cant use cfinclude template=includes/header.cfm any good tricks 4 this or should i just make mappings which i'd prefer not to do since it's on a shared server. ~Dave the disruptor~ Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221986 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfinclude or cfmodule in Application.cfc
On 10/23/05, dave [EMAIL PROTECTED] wrote: k in app.cfc I want to include headers and footers but since app.cfc runs in the template thats requested the path changes so you cant use cfinclude template=includes/header.cfm Why not use a root-relative path? cfinclude template=/includes/header.cfm / or cfinclude template=/appname/includes/header.cfm / if you are not in the webroot. -- Sean A Corfield -- http://corfield.org/ Got frameworks? If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221987 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfinclude or cfmodule in Application.cfc
already tried that and it didnt work ~Dave the disruptor~ Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time. From: Sean Corfield [EMAIL PROTECTED] Sent: Sunday, October 23, 2005 5:00 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfinclude or cfmodule in Application.cfc On 10/23/05, dave wrote: k in app.cfc I want to include headers and footers but since app.cfc runs in the template thats requested the path changes so you cant use Why not use a root-relative path? or if you are not in the webroot. -- Sean A Corfield -- http://corfield.org/ Got frameworks? If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221988 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfinclude or cfmodule in Application.cfc
On 10/23/05, dave [EMAIL PROTECTED] wrote: already tried that and it didnt work What exactly didn't work about it? I just tried it in a variety of directory structures and it works just fine for me... -- Sean A Corfield -- http://corfield.org/ Got frameworks? If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221991 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfinclude or cfmodule in Application.cfc
first prob was user error, didnt have closing tag, so now it runs without error but still doesnt pull up header or footer. in this example here is what i got cfinclude template=/controls/header.cfm root application.cfc controls header.cfm contact contactform.cfm ~Dave the disruptor~ Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time. From: Sean Corfield [EMAIL PROTECTED] Sent: Sunday, October 23, 2005 5:55 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfinclude or cfmodule in Application.cfc On 10/23/05, dave wrote: already tried that and it didnt work What exactly didn't work about it? I just tried it in a variety of directory structures and it works just fine for me... -- Sean A Corfield -- http://corfield.org/ Got frameworks? If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221993 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfinclude or cfmodule in Application.cfc
On 10/23/05, dave [EMAIL PROTECTED] wrote: first prob was user error, didnt have closing tag, so now it runs without error but still doesnt pull up header or footer. What does your Application.cfc look like? Which methods are doing the including? Do you have output=true on the methods in which you're including the header/footer? -- Sean A Corfield -- http://corfield.org/ Got frameworks? If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221995 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfinclude or cfmodule in Application.cfc
output was false, changing to true did work thanks sean :) ~Dave the disruptor~ Some people just don't appreciate how difficult it is to dispense wisdom and abuse at the same time. From: Sean Corfield [EMAIL PROTECTED] Sent: Sunday, October 23, 2005 6:32 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfinclude or cfmodule in Application.cfc On 10/23/05, dave wrote: first prob was user error, didnt have closing tag, so now it runs without error but still doesnt pull up header or footer. What does your Application.cfc look like? Which methods are doing the including? Do you have output=true on the methods in which you're including the header/footer? -- Sean A Corfield -- http://corfield.org/ Got frameworks? If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221997 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfmodule
thanks Raymond, it was actually one of your apps I was looking at that was confusing me :) ~Dave the disruptor~ A criminal is a person with predatory instincts who has not sufficient capital to form a corporation. From: Raymond Camden [EMAIL PROTECTED] Sent: Saturday, June 18, 2005 6:44 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfmodule Some gotchas you should be aware of: If you want name to be an attribute for your custom tag, you can't call it via cfmodule. What I typically do is use 2 attributes, name and well, something else, like thename or something. I then use thename when calling the custom tag w/ cfmodule. Inside the tag I simply copy the attribute value to name. If you use wrapper tags, ie, , don't forget that when using cfmodule, you must properly close all tags. So consider this: You may think the 3rd line closes the layout tag. Actually it closes the foo tag. To make it work right, you simply change the foo call to: This will cause your tag to run twice. If you don't want that to happen, you can add this at the end of your custom tag: In fact, I recommend you always do this so you don't forget. Enjoy. As a general, FYI, I typically always use cfmodule or cf_ so I don't have to worry about name collisions. On 6/18/05, James Holmes wrote: I'm not sure there's much more to it than what's in the docs: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reuseco5.htm http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-pb4.htm On 6/18/05, dave wrote: anyone know of any good tuts on using this? I can use it but just wanna know more :) -- Geeque - accept the geek within and get your friends off your back - http://www.cafepress.com/geeque/ ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209939 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfmodule
Heh, well if you have any more questions, let ke know. Remember, none of my applications have bugs, and they work better than anyone elses. Now execue me while I dodge this lightning bolt... On 6/19/05, dave [EMAIL PROTECTED] wrote: thanks Raymond, it was actually one of your apps I was looking at that was confusing me :) ~Dave the disruptor~ A criminal is a person with predatory instincts who has not sufficient capital to form a corporation. From: Raymond Camden [EMAIL PROTECTED] Sent: Saturday, June 18, 2005 6:44 PM To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfmodule Some gotchas you should be aware of: If you want name to be an attribute for your custom tag, you can't call it via cfmodule. What I typically do is use 2 attributes, name and well, something else, like thename or something. I then use thename when calling the custom tag w/ cfmodule. Inside the tag I simply copy the attribute value to name. If you use wrapper tags, ie, , don't forget that when using cfmodule, you must properly close all tags. So consider this: You may think the 3rd line closes the layout tag. Actually it closes the foo tag. To make it work right, you simply change the foo call to: This will cause your tag to run twice. If you don't want that to happen, you can add this at the end of your custom tag: In fact, I recommend you always do this so you don't forget. Enjoy. As a general, FYI, I typically always use cfmodule or cf_ so I don't have to worry about name collisions. On 6/18/05, James Holmes wrote: I'm not sure there's much more to it than what's in the docs: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reuseco5.htm http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-pb4.htm On 6/18/05, dave wrote: anyone know of any good tuts on using this? I can use it but just wanna know more :) -- Geeque - accept the geek within and get your friends off your back - http://www.cafepress.com/geeque/ ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209943 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfmodule
Ah Ray Ah! :) -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Sonntag, 19. Juni 2005 14:22 To: CF-Talk Subject: Re: cfmodule Heh, well if you have any more questions, let ke know. Remember, none of my applications have bugs, and they work better than anyone elses. Now execue me while I dodge this lightning bolt... ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209944 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfmodule
I'm not sure there's much more to it than what's in the docs: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reuseco5.htm http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-pb4.htm On 6/18/05, dave [EMAIL PROTECTED] wrote: anyone know of any good tuts on using this? I can use it but just wanna know more :) -- Geeque - accept the geek within and get your friends off your back - http://www.cafepress.com/geeque/ ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209912 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfmodule
Some gotchas you should be aware of: If you want name to be an attribute for your custom tag, you can't call it via cfmodule. What I typically do is use 2 attributes, name and well, something else, like thename or something. I then use thename when calling the custom tag w/ cfmodule. Inside the tag I simply copy the attribute value to name. If you use wrapper tags, ie, cf_foo/cf_foo, don't forget that when using cfmodule, you must properly close all tags. So consider this: cfmodule template=layout.cfm cfmodule template=foo.cfm /cfmodule You may think the 3rd line closes the layout tag. Actually it closes the foo tag. To make it work right, you simply change the foo call to: cfmodule template=foo.cfm / This will cause your tag to run twice. If you don't want that to happen, you can add this at the end of your custom tag: cfexit method=exitTag In fact, I recommend you always do this so you don't forget. Enjoy. As a general, FYI, I typically always use cfmodule or cf_ so I don't have to worry about name collisions. On 6/18/05, James Holmes [EMAIL PROTECTED] wrote: I'm not sure there's much more to it than what's in the docs: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reuseco5.htm http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-pb4.htm On 6/18/05, dave [EMAIL PROTECTED] wrote: anyone know of any good tuts on using this? I can use it but just wanna know more :) -- Geeque - accept the geek within and get your friends off your back - http://www.cafepress.com/geeque/ ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209927 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
cfmodule
anyone know of any good tuts on using this? I can use it but just wanna know more :) ~Dave the disruptor~ A criminal is a person with predatory instincts who has not sufficient capital to form a corporation. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209893 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFCs and CFModule
On 4/27/05, Chris Berg [EMAIL PROTECTED] wrote: Additional info: I am calling the CFC via an event gateway. There is no FORM scope when using event gateways. Nor URL scope. Because there is no HTTP request involved. I would STRONGLY recommend not using cfmodule inside a CFC anyway. Fusebox (and Mach II and Model-Glue) are not intended to be called from non-HTTP requests. That's what CFC-based models are all about and why Tartan is worth looking at. The idea is to build your CFC-based model (perhaps using Tartan) and then call that model from your event gateway or from your MVC framework front end. -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205007 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CFCs and CFModule
Hello, I am trying execute a CFModule from inside a CFC and having quite a time. When I execute the CFMODULE with an absolute path (from the webroot -- /projects/ASF/index.cfm), I receive an error saying that index.cfm doesn't exist at that location. When I turn execute the CFMODULE with a relative path (../ASF/index.cfm) I get an error form is undefined. Since I am trying to call a fuseaction (in fusebox) the code I am calling doesn't directly reference the form scope anywhere. To make things weirder, when I remove the CFMODULE from the CFC and run it in a CFM file in the same directory as the CFC, it works fine. Any ideas? Chris ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204720 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFCs and CFModule
Additional info: I am calling the CFC via an event gateway. When I call it from the browser, the CFMODULE call isn't a problem. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204721 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Good books on Web Application Architecture (was RE: CFMODULE vs. CFINCLUDE)
Which brings up a follow on thread: What would you recommend as good reading on Architecture? Jerry Jerry Johnson Web Developer Dolan Media Company [EMAIL PROTECTED] 12/02/04 02:53AM To write a good application, knowing ColdFusion is only 1% and most people don't seem to understand that until they are confronted with architectures providing speed, reliability, robustness and developer support. Most people then start buying books about architecture.. ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185926 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CFMODULE vs. CFINCLUDE
Personally, the advantages of cfmodule outweigh those of cfinclude. The performance hit of cfmodule is really low, and cfmodule provides you with encapsulation. Variables defined within a template called by cfmodule have no effect on the executed code outside that template (unless you are using variables in request, session, application, client, server, or use the caller). What you need to keep in mind, when you call a cfmodule template within a CFC, and use caller in that template, the variable is returned to the CFC. So if you want to use returned data from the template, you need to put business logic in your CFC which handles that. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185771 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFMODULE vs. CFINCLUDE
I've was thinking about this post last night - don't ask. To give you a little background im mainly a solid Fuseboxer so issues of layout have always been in the back of my head as it is something FB accomodates for. But the one thing i love about the move from FB2 to FB3 was having the layout file in one file. Well after reading this post it got me thinking about the Layout process again (mainly because i am also looking at doing a small app without FB for a change). And i was wondering why the cfsavecontent tag isn't used here? Basically your page would be: cfsavecontent variable=content Content Goes Here /cfsavecontent This would allow several options at the bottom of the page 1) cfinclude template=layout.cfm This would take the variable content and display its contents 2) cfmodule template=layout.cfm body=#content# 3) cf_foo#content#/cf_foo 4) Plus you could even put the layout template reference in the onRequestEnd.cfm and put some logic for each page? Just my 2 cents Andy www.andyjarrett.co.uk On Wed, 1 Dec 2004 09:12:08 +0100, Micha Schopman [EMAIL PROTECTED] wrote: Personally, the advantages of cfmodule outweigh those of cfinclude. The performance hit of cfmodule is really low, and cfmodule provides you with encapsulation. Variables defined within a template called by cfmodule have no effect on the executed code outside that template (unless you are using variables in request, session, application, client, server, or use the caller). What you need to keep in mind, when you call a cfmodule template within a CFC, and use caller in that template, the variable is returned to the CFC. So if you want to use returned data from the template, you need to put business logic in your CFC which handles that. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185777 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54