Advanced ColdFusion Custom Tags With Ben Nadel (Video Presentation)

Posted August 22, 2009 at 5:58 PM by Ben Nadel

Tags: ColdFusion

The following video and slide show is my presentation: Advanced ColdFusion Custom Tags. While the slide show covers the entire breadth of ColdFusion custom tags, from the basics to the advanced, the video demonstrates only the advanced aspects covered in my CFUNITED version of the presentation. Custom tags are the unsung heroes of the ColdFusion world and I hope that in this presentation I can demonstrate the ways in which they can be used to create more natural, more elegant, and ultimately more powerful solutions to your everyday business problems.

In the presentation, I keep bringing up ColdFusion components because it has been my observation that in the community at large, it is believed that ColdFusion components are a replacement for the "outdated" usage of Custom Tags. What I want to get across to you is that these are not competing technologies in any way; and, in fact, ColdFusion components and custom tags can work together, synergistically, to create best-of-breed solutions.

Click here to download the presentation slides and the code demonstrations.


 
 
 

 
Advanced ColdFusion Custom Tags With Ben Nadel (Video Presentation)  
 
 
 

NOTE: I recorded the video at a very large dimension - my apologies for the scrolling.

On a personal note, this my first presentation given at a conference, so a big thanks to everyone who encouraged me and gave me excellent feedback (especially you Simon Free).



Reader Comments

3 Comments

Thanks Ben for posting your preso, I agree that alot of people don't appreciate how useful and relevant custom tags can still be in this crazy grande cfc with oo icing thanks world :P

The best example of advanced tag use in the wild I have seen would have to be Mango Blog with it's custom tag templating and event system. Complex and very cool stuff.

Later, Jo.


Aug 23, 2009 at 6:07 PM // reply »
11,238 Comments

@Joanna,

No problem. And thanks for the Mango Blog tip, I'll have to take a look at what their doing.


Aug 24, 2009 at 8:38 AM // reply »
7 Comments

Thanks for putting this out there. I haven't done much with custom tags for the last few years but they are still useful and pretty great for portability reasons!


Aug 24, 2009 at 8:39 AM // reply »
11,238 Comments

@Andy,

Glad you like it my man. Custom tags are very powerful things.


Oct 7, 2010 at 4:48 PM // reply »
158 Comments

@Ben, I'm trying to figure out what the difference is between a custom tag and calling a function inside a CFC.

Right now we have zero CT's. Is it leaner to simply put
<cf_GetNewAccount Variable="Username"> than to <cfset variable=account.newAccount(Username)>? (Sorry if the coding is wrong)


Oct 10, 2010 at 4:16 PM // reply »
11,238 Comments

@Randall,

Typically, application business logic is being packaged inside of your ColdFusion components these days. As such, for your example, I would go with a CFC.

ColdFusion custom tags are great for more display logic, domain specific languages (DSL - basically a fancy way to abstract the way things are "described"), and for creating control flow (ie. augmenting the core language in a way that is not tied to any particular application).


Nov 9, 2010 at 10:58 AM // reply »
158 Comments

Any performance hit between Tags and CFCs? Have you ever tested?

I'm just imagining it needing to read an /additional/ file from disk (versus possibly having a CFC already loaded in memory). Or is it a moot point after the first go 'round?


Nov 9, 2010 at 2:04 PM // reply »
11,238 Comments

@Randall,

ColdFusion will try to cache all "Templates." There's not that much difference between a template that ends in CFC and a template that ends in CFM. That said, as long as you have your template cache turned on, there shouldn't be disk overhead for either case.

Comparing the performance of the two is someone of a moot point as custom tags do different things than components. Really, you just want to pick the right tool for the job.


Jul 26, 2011 at 8:44 AM // reply »
33 Comments

Hi Ben,

Just wanted to ask you like can we use application scoped variables inside a custom tag page or we can only use request scope variables?


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 20, 2013 at 11:45 AM
Using jQuery's Animate() Step Callback Function To Create Custom Animations
This is really useful. I found out that you don't actually have to use a dummy css property (surprisingly). To animate a property in a linear-gradient for instance I did this this.css('someLinearGra ... read »
May 20, 2013 at 10:51 AM
Using A Dynamic Column Name With ValueList() In ColdFusion
@Josh, Oh snap! You're totally right! I'm not sure I've ever tried that. I did know that you can call a number of other array-methods on ColdFusion query columns: http://www.bennadel.com/blog/167 ... read »
May 20, 2013 at 10:45 AM
Using A Dynamic Column Name With ValueList() In ColdFusion
@Ben - I believe you can achieve the same functionality with ColdFusion's built in ArrayToList() function. ArrayToList( users[ "id" ] ); ... read »
May 20, 2013 at 10:21 AM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
Is there any error logging and handling framework in angularjs, if not then in what way I can do this. ... read »
May 19, 2013 at 2:31 PM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
It's funny really just how well that image describes the way I would imagine most people that go with angular for some project is. I have had a similar roller-coaster ride with it as well, but not qu ... read »
May 17, 2013 at 7:42 PM
HashKeyCopier - An AngularJS Utility Class For Merging Cached And Live Data
Ben - thanks so much for posting these Angular articles and findings, they've been a huge help towards learning one of the more 'complex' JavaScript frameworks out there (IMO). I have been using Angu ... read »
May 16, 2013 at 5:01 PM
UPDATE: Parsing CSV Data Files In ColdFusion With csvToArray()
Your code was the closest thing I've found to obtaining some direction for converting ISO fields to values that CF can translate properly. Thank you for posting! ... read »
May 15, 2013 at 6:07 PM
Making SOAP Web Service Requests With ColdFusion And CFHTTP
Ben, you once again saved my bacon at work. Thank you, thank you, thank you! ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools