Railo Blog CFC
- August 19, 2010
- Railo on Github
-
Railo team has made a final decision to start doing nightly builds / BER on Github ( http://github.com/getrailo/railo ). We will continue to use JBoss SVN ( http://anonsvn.jboss.org/repos/railo/ ) for pushing stable builds. We're now working on creating a build script to make it easier to build Railo.
- August 19, 2010
- Railo Tip: Trimming with cfsavecontent
-
Random tip of the week with <cfsavecontent>:
[More]
- August 18, 2010
- Railo 3.1.2.019 and open tasks
- As part of the latest Railo update, the format of the task object has changed slightly so, if you have any open tasks in your Administrator (under Services > Tasks), it's probably safer to delete those tasks first, before you update. This applies only to tasks, not scheduled tasks. If you update while such tasks exist, you may encounter a null pointer exception when viewing Services > Tasks in the Administrator. To fix that, simply remove the *.tsk files from the WEB-INF/railo/client-tasks folder tree and restart Railo.
Mark Drew's personal blog
- August 6, 2010
- Railo ORM and Magic Functions
Background: I am writing a little app to help us here at Railo with some of our contacts, nothing over the top or anything and wanted to take Sean Corfield's FW/1 for a spin.
As I am developing, I went the most direct route, I just did some queries in the service layer so my code looks like:<cffunction name="list" output="false"> <cfset var clients = 0> <cfquery name="clients" datasource="#variables.dsn#"> SELECT * FROM contact; </cfquery> <cfreturn clients> </cffunction> <cffunction name="view" output="false"> <cfargument name="clientid"> <cfset var qclient = 0> <cfquery name="qclient" datasource="#variables.dsn#"> SELECT * FROM contact WHERE id = <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.clientid#">; </cfquery> <cfreturn qclient> </cffunction>
OK, nothing world shattering, so I wanted to start using the ORM features of Railo (join the pre-release group to test them out!). I changed my code to look like:
<cffunction name="list" output="false"> <cfset var clients = 0> <cfquery name="clients" dbtype="orm"> FROM contact </cfquery> <cfreturn clients> </cffunction> <cffunction name="view" output="false"> <cfargument name="id"> <cfreturn entityLoad("contact",arguments.id,true)> </cffunction>I then defined my "contact" (I can show the code but it's hardly rocket science) and then when I reloaded I got the error:
Component [contact] has no acessible Member with name [ID]
Of course! My view code looks like:
<input type="hidden" name="id" value="#rc.data.id#">
I could change all my calls to fields to<input type="hidden" name="id" value="#rc.data.getid()#">
but why bother? I just went to the Railo Admin -> Archives & Resources: Component -> Magic Functions and enabled them, now all my view code works just as expected and I didn't have to change my view code.
- July 26, 2010
- Railo at CFUNITED!
On the final CFUnited, Railo will be there in force!
You can come visit us at our stand to find out the awesome consulting services we provide as well as, of course, our most awesome Open Source CFML Engine! (yes! I used "awesome" twice!)
There might even be some delicious Swiss chocolate there too!
Apart from the stand, you can also check out our team's presentations
Sean Corfield will be talking about:And you can also catch Gert Franz's topic:
Since most of us will be en-route to the conference tomorrow, why not email us today if you have any queries ahead of time?
See you all there! I am sure it's going to be awesome!
- July 25, 2010
- Presenting at cf.Objective (ANZ)
I am really happy to say that I shall be presenting at cf.Objective (ANZ) this year! I had a great time last year in Melbourne and glad that this year I won't just be manning the Railo stand (do come and say hello!) but I shall also be doing a presentation on CouchDB CouchDB is a "noSQL" database that is rather exciting in how it works as well as a highly performant document database.
If you manage to make it, make sure you either come to my session or at least pop by and say hello to the Railo team!


