Hidden Railo gem for your dev environment

posted by Chris on Apr 20, 2012 at 16:21

I found this blog post from way back by Gert talking about configuration options in your railo-web.xml.cfm file and hidden in there is this little gem


under point 1.b it says 

RAM this sets the location to your server's ram (the generated files remain persistent until the server is restarted)




No more worrying about cached compiled classes, just restart your container (tomcat, jetty etc) and know that any templates or cfc's that railo had compiled will be blown away when you restart.



Get the Gist

posted by Chris on Mar 08, 2012 at 22:50

I've just pushed another mini-project onto github, cfgist

cfgist pulls the gist .js file from github and then uses the Rhino javascript engine to execute the javascript that is normally run in the browser on the server side, outputting the html to the page.

This might be useful if you want to load page fragments with ajax or similar when <script> tags wouldn't be executed, or you're outputting to a medium that doesn't support javascript like <cfpdf>

CFRBAC - Role Based Access Control for Coldfusion

posted by Chris on Feb 24, 2012 at 14:48

I've just pushed a a very rough pass at some basic RBAC functionality for Coldfusion ORM up to github.  The project can be found here - https://github.com/d1rtym0nk3y/cfrbac

Opening a url in the default browser with Ant

posted by Chris on Jan 04, 2012 at 18:15

Been playing with Ant, Jenkins and MXUnit recently and when I run the build in eclipse i thought it would be nice if it could open up the test results for me.

cfparam broken in cfscript

posted by Chris on Sep 06, 2011 at 11:49

I just ran into an issue with <cfparam>or at least the implementation of it inside a <cfscript> block.

To ensure a variable is defined using the <cfparam> tag you wold do

<cfparam name="url.id" />

If you hit this page without providing an id on the url you would get an error from ColdFusion, eg.

The required parameter URL.ID was not provided

However in cfscript there are two ways to write this

param url.id;
// or 
param name="url.id";

The first behaves exactly the same as its tag counter-part, but the second fails to throw an error if the variable is undefined.

I can't find any docs for cfparam in cfscript on adobe.com, but the second syntax is supported by ColdFusion builder, in fact it auto-suggests the name attribute when you type in param. So both should be supported, which means this is a bug.

I've posted a bug report here