Orange is my favorite color

Archive for 2008/01


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

This is a step-by-step example on how to setup Coldspring and Transfer to inject dependencies into your Transfer decorators. Normally Coldspring can only help with defined beans rather than ones you get via transfer.get() or transfer.new(). Mark added a bridge that lets them work together but I found his example too brief to [...]

Day 3 was a bust. The power went out due to severe storms around 11am and I went home before going to my dad’s 60th birthday party that night. We drove my girlfriend’s Audi A3 on backroads as we navigated around a flooded highway. Thankfully there were other cars in front of [...]

Following up on my post from yesterday, here are a few things I’ve learned in the last 24 hours:
Findings Today

eXit Events – I’d been toying with these but I am going to commit to using them exclusively with viewState.getValue(‘myself’) in order to fully control the application flow from model-glue.xml. This goes even for “static” [...]