Community Member Profile
- Profile: /members/2949-Tony-Nelson.htm
- URL: http://bears-eat-beets.blogspot.com/
- Comments: 18
- Points: 185
Recent Blog Comments By Tony Nelson
-
Exploring Mixins And ColdFusion Components
Posted on Oct 31, 2009 at 6:30 PM
@Ben, Sorry I should've followed up to my previous comment. When I first tried using mixins in CF9, it didn't appear as if they would work because none of the functions in the mixin appear if you dump the object. However, the functions work as expected.... read more »
-
Exploring Mixins And ColdFusion Components
Posted on Oct 19, 2009 at 8:54 PM
Have you tried using mixins in CF9 yet? I'll give you a hint: not what you'd expect...... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 23, 2009 at 10:47 AM
Duh. How'd I miss that?... read more »
-
Ask Ben: Displaying A Blog Teaser (Showing The First N Words)
Posted on Sep 23, 2009 at 10:42 AM
While regular expressions are pretty handy, aren't they a little overkill when a simple #left(blogContent,50)# would suffice?... read more »
-
String Data Type Gotcha When Using CFGroovy
Posted on Sep 14, 2009 at 11:15 AM
Looks like you got hung up by a GString, huh?... read more »
-
How Much Should Our ColdFusion Applications Actually Know About ORM?
Posted on Sep 8, 2009 at 4:25 PM
@Ben, If you wanted to, you could create a generic HiberanteDAO that encapsulated ColdFusion's Entity***() methods and inject it into all the services that required the necessary CRUD operations. However, I don't see a huge benefit in adding a DAO layer just for the sake of adding another l... read more »
-
Ask Ben: Creating A PDF And Attaching It To An Email Using ColdFusion
Posted on Sep 4, 2009 at 7:47 PM
I'm not sure why I noticed this, but I like how the cfmail tag is sending the email from info@certificiates.com and the screenshot shows the email coming from info@certiciates.com. What exactly were you trying to spell? Certificates? A little over excited for the long weekend? Aside from th... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 19, 2009 at 3:56 PM
@Paulo, Your example does work for smaller applications, but once you get into a larger project with multiple objects, each have various dependencies between to other objects, it becomes rather cumbersome to define all the relationships in your application. Using a dependency injection fram... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 18, 2009 at 12:00 PM
@Ben, Yeah I figured it was more for demonstration purposes than anything, but I've never thought about setting it up like that and it was kinda nice to see a new perspective on things. Props.... read more »
-
Building A Simple ColdFusion Dependency Injection Framework
Posted on Aug 18, 2009 at 11:55 AM
That's an interesting take on the Active Record pattern. Most of the time, I would've expected the User object to either extend an ActiveRecord or have a reference to something similar (Reactor?), rather than having a reference to a service that then talks to a DAO to perform the CRUD.... read more »
-
ColdFusion 8's OnMissingTemplate() - So Close To Being Good
Posted on Jul 1, 2009 at 5:51 PM
@Rich, No, onMissingTemplate() will only fire if you have a .cfm extension in your url.... read more »
-
ColdFusion 8's OnMissingTemplate() - So Close To Being Good
Posted on Jul 1, 2009 at 11:57 AM
I've been using onMissingTemplate() to intercept requested templates and render them inside a layout. It's been working pretty well. I previously used onRequest(), but ran into issues with webservices. read more »
-
ColdFusion 8 Application Specific Mappings Work With The CFComponent Extends Attribute
Posted on Jun 13, 2009 at 11:22 AM
@Kevin, Unfortunately application specific mappings won't work for flash remoting since the call isn't coming from the application, so you'll still need to create the mapping within your cfadmin. What I do is create the mapping during onApplicationStart() by using the cfadmin API. Wo... read more »
-
ColdFusion 8 Application Specific Mappings Work With The CFComponent Extends Attribute
Posted on Jun 11, 2009 at 10:25 AM
@Kevin, Using expandPath() will return the directory path to the page that is currently executing, meaning the mapping will be based on the page that initializes your application. If you use getDirectoryFromPath(getCurrentTemplatePath()), it will return the directory path of the page... read more »
-
ColdFusion 8 Application Specific Mappings Work With The CFComponent Extends Attribute
Posted on Jun 11, 2009 at 10:15 AM
Since I'm not a huge fan of regular expressions (they look like gibberish to me), I tend to go with relative mappings instead. <cfset this.mappings["/com"] = getDirectoryFromPath(getCurrentTemplatePath()) & "..\com\" /> It looks kinda weird if you dump the mapping, but it still... read more »
-
Ability To Leverage ColdFusion Bug Will Mean Errors Later
Posted on Apr 7, 2009 at 10:31 AM
That code makes my head hurt.... read more »
-
Applying Flattened CSS To XHTML For Use In Remote Environments
Posted on Mar 11, 2009 at 11:34 AM
I thought you might enjoy this: http://lab.arc90.com/2009/01/json_css.php... read more »
-
Ask Ben: Automatically Generating Remote CFC Proxies In Javascript
Posted on Feb 17, 2009 at 4:23 PM
I would recommend using getComponentMetaData() rather than getMetaData() since it doesn't create an instance of your component.... read more »



