Orange is my favorite color

Archive for the 'ColdFusion' Category » Page 10


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” [...]

It’s been quite-a-10-days. In fact, a little hard to believe it’s been 10 days. Technically it’s only been 9 days. Last weekend I proposed to my girlfriend of four years and she said yes! Although I’ve been working 12 hours a day, 7 days a week, it seemed like the right [...]

If you use any of ColdFusion’s network connectivity tags like CFHTTP or CFLDAP which can access SSL-protected resources, you may eventually come across a dreaded security error. This is caused by SSL certificates which are, in some way, not valid causing the JRE to throw an exception.
This link round-up is the result of getting [...]

In my quest to figure out Model-glue and convert my application, I’ve been referring to a lot of community blog posts. One of the most helpful has been Doug Boude’s Model-Glue Event Lifecycle in Layman’s Terms post. Over the past two weeks I’ve learned a few subtleties to the lifecycle that I want [...]

Not so much progress the last two days. I spent lots of time spent cleaning up my previous API conversion and making sure those methods actually work.
Findings Today

Mike Schierberl’s varScoper – Beans I created with Brian Rinaldi’s Illudium PU-36 code generator created a bean populate() method with an unscoped variable. That [...]

The last two days have been more thought-provoking than code-producing. Based on this thread on the model-glue list, I’ve been evaluating my service layer and whether or not I have an anemic domain model. I think I have the cooties. But I also have to push on so I’m going to correct [...]