By barneyb on March 10, 2010
A while back I made an attempt to move Pic of the Day (NSFW) off of ColdFusion 8 and onto Railo 3. I can't afford a license of CF9, so my only upgrade path is through a free alternative. Unless someone has an extra four grand they want to give me….
Last time I was foiled [...]
Posted in coldfusion, meta, potd, railo
By barneyb on April 13, 2009
It's pretty common knowledge that ColdFusion passes arrays to UDF by value, and not by reference like pretty much every other language. It's a weird behaviour, but as long as you remember to write array-processing functions to be used like this:
<cfset myArray = modifyArray(myArray) />
instead of like this:
<cfset modifyArray(myArray) />
you'll be fine. However, someone pointed [...]
Posted in cfml, coldfusion, railo
By barneyb on April 7, 2009
Ben Nadel posted another interesting code snippet this moring. I think Ben and I stand in agreement on the technique: NEVER EVER USE IT. It leverages a horrible bug in ColdFusion's implementation of struct literals that I've blogged about previously.
Here's the snippet:
<cfset objConfig = {
root = getDirectoryFromPath(getCurrentTemplatePath()),
tags = objConfig.root & "tags/",
[...]
Posted in cfml, coldfusion, railo
By barneyb on December 2, 2008
Found another minor bug in Railo today: CFCOOKIE doesn't accept a date passed to it's 'expires' attribute. It happily accepts 'now', 'never', and a number of days, but not an actual date. Submitted as JIRA-149.
Posted in railo
By barneyb on November 27, 2008
To quote my post Tuesday about Railo bug 147:
Railo has an issue with non-defaulted, non-required, numeric method arguments that are omitted from a call. I added it as bug 147 in JIRA.
Turns out I was a bit incorrect – I'd forgotten that method was proxied by ColdSpring's AOP engine (which is exactly what's supposed to [...]
Posted in railo
By barneyb on November 26, 2008
Just completed my first port of a major app from ColdFusion to Railo. Time elapsed from downloading the Railo WAR to my dev box to see if the app would run to reenabling the prod instance: 1.5 hours.
Downloaded the WAR, unpacked it into my webroot, unzipped a new Tomcat, set up a Context pointer to [...]
Posted in cfml, coldfusion, railo
By barneyb on July 18, 2008
I just pulled down the 1.0 release of MX Unit, and was most disappointed to see that it only works on ColdFusion:
…blah…
no definition for the class … [coldfusion.cfc.CFCProxy] could be found
…blah…
Since I do most of my CFML development on Railo now, it kind of leaves me stuck. Fortunately, CFCUnit works flawlessly, but with it's definitely [...]
Posted in coldfusion, railo, tools
By barneyb on July 14, 2008
ColdFusion introduced CFML struct and array literals in CF 8. They sucked. Assignment only, no nesting, and the use of '=' for key-name pairs instead of ':', like every other language including other parts of CFML. CF 8.0.1 fixed the nesting issue, but not the others. I've been trying to figure out why it's an [...]
Posted in cfml, coldfusion, railo
By barneyb on July 12, 2008
I've just released 1.0RC of CF Groovy, including Hibernate support. You can download it, or view the demo app. The download includes both the demo and the runtime engine.
The big new feature is Hibernate support, of course. Here are a couple snippets from the demo app. First, the entity class:
package com.barneyb
import javax.persistence.*
@Entity
class User extends AbstractEntity [...]
Posted in cfml, coldfusion, database, development, groovy, railo, tools
By barneyb on July 2, 2008
After close to two weeks of struggling, I finally managed to deploy pure source to a CFML runtime (Railo, in this case), and get Groovy entities in and out of the database with Hibernate. No compliation, no IDE, no development-mode server, just my Groovy source along with a hacked up CF Groovy. This is very [...]
Posted in cfml, database, development, groovy, java, railo