Beta Railo Extensions: CFJAVASCRIPT / CFSTYLESHEET

Another fine example of extending your Railo server by Andrea Campolonghi. Working on large ajax projects it is not uncommon to see pages that include a lot of javascript and css files. We're often times mixing and matching javascript plugins which sometimes has css stylings that go along with the plugins. We have worked to a solution that can help developers and let the server do the job of compressing and concatenating files. Let's imagine that your app need the following js files:

[More]

Cache (Reference) Part 3

Before we begin the last part of the cache blog, let's do a little review.

In the first part, I have shown how the cache is used as an object cache, how to create a cache and interact with it but not more. The second part was on everything that is possible with the cache, and for what it can be used. In the last part we want to see at some special cases and deliver the promised reference.

[More]

Cache (Advanced) Part 2

In the first part of the cache blog entry we looked at how we can use the cache directly without entering into great detail. Now let's have a look at what the cache is at capable of. Because it provides much more than just storing data.

[More]

Cache (Basic) Part 1

Since version 3.1.2 Railo supports the possibility of using a cache. This blog entry will go into the details of this feature. The blog is divided into 3 parts, the first part will deal with the base functionality, the second part show how the cache is used in backend and the last part takes care of specialties when using the cache and shows a reference.

[More]

Projects at GetRailo.org

http://projects.getrailo.org/ is now available for those Open Source projects that extend / enhance Railo. Big thank you to Andrea Campolonghi for the time he spent setting this up. If you have a open source project enhancing or extending Railo and would like to have a project hosting along with access to a public SVN and Trac (wiki), please contact us so that we can get you going!

The Ajax Railo project has been relocated to http://projects.getrailo.org/projects/railoajax/.

CFC Custom Tag Example

This post was inspired by Raymond Camden recent blog post about Yahoo Query Language (YQL). Back in June 2009, Michael Offner-Streit blogged about how to create CFC Custom Tags. So, I thought I'd do a little experimenting with this idea and convert Ray Camden's custom tag (cfm) over to a custom tag (cfc) that Railo enables you to use.

[More]

Using the Railo cluster cache

This is something we wanted to do for more than a year now. We wanted to implement a cache that is reachable from all the servers in a cluster. So here we go...

[More]

Railo 3.1: Building your own Built-In-Function

Ever wish you could just install a frequently used UDF to the server since you use it so much? Take any of the numerous UDFs found at CFLib.org for example. How about... QueryRowToStruct()? That's a pretty useful function. Wonder why they didn't build this in? With Railo 3.1 RC, you can build this in yourself. With this blog post, I'm going to outline two different installation concepts, server wide and local context.

First, server wide:

  1. Click on the "Download" link on QueryRowToStruct and you'll be prompted to download QueryRowToStruct.cfm
  2. For server wide installation, you'll want to put this in the following directory:
    {railo installation directory}/lib/railo-server/context/library/function/
  3. Restart the server (I had to, I'm going to verify if this step is really necessary or if it can be fixed :) )

Once installed, I shouldn't have to cfinclude or copy/paste that function anywhere. I can create a test.cfm in my localhost and run the example code on QueryRowToStruct description page.

Now, you may be in a particular situation where you can't have this server-wide because you share the server with other people or because there's a conflict. You could just install it to your local context. Each virtual host you make should have its own WEB-INF directory, so you have a global admin and a local admin.

You would repeat all of the steps above, except for #2, you'll want to install this here instead:

{your website root directory}/WEB-INF/railo/library/function/

Remember, you don't have to use anything specific from CFLib.org. You can write your own user defined function or install the one that you frequently use. I bet this makes you wonder if Railo 3.1 could give you the ability to create your own Built-In-Tag? ;) You can and there's been some changes, so I plan on investigating and outlining in a new blog post. If you want to see if you can figure it out for yourself, you can use Andrea Campolonghi's <cfajaxproxy> as a great example. This example includes installation directions and will only work on Railo 3.1.020 build or higher.

Update: The resin webserver doesn't need to be restarted, but the Railo servlet engine does. You can do this one of two ways, log into the admin portal and click Restart or via code: <cfadmin action="restart" type="server" password="serverPassword">

CFC-based Custom Tags by Example - Part 3

Sorry for the delay I had little time the last days for writing this blog entry. But in the end, here it is.

[More]

CFC-based Custom Tags by Example - Part 2

CFC based Custom Tags In the first Part we have looked at the major functions for CFC based Custom Tags, and how you can manipulate the environment and control the flow. In this entry we will look into exception handling.

[More]

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.002. Contact Blog Owner