Orange is my favorite color

Archive for the 'ColdFusion' Category


I’ve been working on my exception reports and one of the things I wanted to do was isolate the equivalent of a “404″ response in Model-Glue to be more graceful to the user. I found this post from Ray’s site and a promise in the comments from Joe Rinehart that typed exceptions would make […]

A really interesting thread on CFGURU today discussing how to minimize the impact of clients that don’t accept cookies from rapidly creating “phantom” sessions that eat up memory. Because the client doesn’t accept a cookie, each request will appear to be a new client and ColdFusion will generate a new session along with any […]

I love crazy long titles that make highly qualified claims. So as the title says, this is, in my humble opinion, the best available regular expression for ColdFusion developers who validate email addresses of everyday English-speaking users. Here is what I used to use, from cflib.org. This one is good because the […]

I have been tempted, and even used successfully, the Transfer.clone() method to duplicate an existing Transfer object. But Mr. Corfield told me today that I was insane for relying on such a thing which is apparently well documented. So I began looking for another way to easily duplicate a transfer object.
Why I […]

Is it possible to get permission to build and release a Live CD that includes a default ColdFusion Developer edition install on it? Or a VMWare image?
This would open a lot of possibilities for evangelizing and testing.

If you’re using my actionpack for search-engine safe URLs for Model-Glue, you may have noticed that appending values with a <result> to a redirected event uses the normal ?var=value syntax.
This unfortunately can’t be fixed by an external modification like my actionpack however the needed modification to the core is extremely tiny so I have made […]

Yesterday I started a post talking about PostgreSQL 8.3 RC2 and this morning I come in to find the official 8.3 release in my inbox! There are quite a few interesting new features, a few of which are specifically of interest to ColdFusion developers:

UUID datatype
ANSI-standard SQL/XML support
ENUM datatype

There is a page about UUID support […]

If you skim the Transfer docs, like I do, you might miss the fact that specifying a relationship (onetomany, manytoone, manytomany) automatically creates support for the column you reference. This can cause maddening errors like the following:
Error Executing Database Query.
ERROR: column “dtype” specified more than once
transfer\com\sql\QueryExecution.cfc (108)
transfer\com\sql\TransferInserter.cfc (371)
transfer\com\sql\TransferInserter.cfc (132)
transfer\com\sql\TransferInserter.cfc (49)
transfer\com\sql\SQLManager.cfc (61)
transfer\com\Transfer.cfc (197)
transfer\com\Transfer.cfc (177)
If […]

A quickie tip that is (for me) easy to forget some days: I have a table with a foreign key. For certain reasons, I’m not creating a Transfer relationship with this foreign key and I want it to default to NULL. The object is defined like so in transfer.xml:
<object name=”club” table=”tblclub” decorator=”model.club.club”>
<id name=”ClubID” […]

I did very little today due to a mistake in my modelglue.xml. It turns out I specified:
<event-handler name=”register.finish” access=”private”>
<broadcasts>
<message name=”clearNewAccountBean” />
</broadcasts>
<result>
<result name=”doEventPage” do=”event.advert” redirect=”true” append=”event” />
<result name=”doHomePage” do=”pap.home” redirect=”true” />
</result>
</event-handler>
See the mistake? The result tag is inside of another “result” tag instead of “results” like it should be in this correct version:
<results>
<result name=”doEventPage” […]