The Ortus BlogBox

"Ortus: A rise, beginning, coming into being, born, the origin!"


ColdBox 2.5.2 update coming : autowire delight!!

Luis Majano
Oct 15, 2008


For those of you interested in downloading the daily build, I have let
the cat out of the bag today, in which we will have version 2.5.2 in the next coming weeks.

Why the update if we are on schedule for 2.6? Well, these features where left out of 2.5 until I was sure they where ok and now they are.

So what does the update include:

1. Two new interception points: afterHandlerCreation, afterPluginCreation

2. Fixes for using the coldboxproxy with event gateways (Thanks Tom!)

3. API documentation

4. Lightwire updated to include "containsBean" method

5. Due to the popularity of the flash RC persitance via setNextEvent and setNextRoute, the method has been now exposed to the controller and all plugins/handlers/interceptors. You can now persist variables from the collection into the flash RC Ram via the method:

"persistVariables(comma-delimmited list of keys)".

You can now use it to persist on demand. (Thanks Mark!!)

6. One new interceptor: autowire.cfc

This amazing interceptor will autowire your handlers and plugins with beans from the ioc plugin (whether coldspring or lightwire). So you can easily autowire your handlers and plugins with service objects or whatever you want. Man, am I gonna have to configure mooore stuff. Well, not thanks to conventions and metadata. All you do is:

- Declare the 'autowire=true' in your cfcomponent declaration.

- Then just create the getter/setters for your services (*They have to
be the same name as the bean names in your configurations)

And that is IT!!! No configuration, just add the "autowire" metadata parameter
to your handlers and plugins, create the getters and setters and you
are ready to roll.

The interceptor declaration would be:

The debugmode property just spits out to the log files any errors or
information stuff.

So there you go, one more surprise coming probably in about a week and
2.5.2 is a go!!

Enjoy the autowire interceptor!!

ColdBox MVC, News 1

SSL Interceptor by Ernst van der Linden

Luis Majano
Oct 15, 2008


Ernst has just posted his code for an ssl interceptor he just created. It looks awesome so take a look for yourself.

ColdBox MVC, Interceptors, News 4

SSL Interceptor does specific events now, great stuff Ernst

Luis Majano
Oct 15, 2008


Ernst has been busy and has updated his SSL Interceptor to do specific events and even pattern matching for events. So check his article out, truly nice work!!

ColdBox MVC, Interceptors, Tutorials 0

Russ Johnson on ColdBox Viewlets!!

Luis Majano
Oct 15, 2008


Russ Johnson, of Team ColdBox, has written a pretty nifty tutorial on ColdBox Viewlets. From the docs:

A viewlet to me is a self sufficient view. A view that can live on its own, its data is pre-fetched and can just be renderer as is. What in the world is this? Well, imagine a portal, in which each section of the portal is self-sufficient, with controls and data. You don't want to call all the handlers for this data for every single piece. Its not efficient, you need to create a separation. Well, a viewlet is such a separation and all it comes down to, its that its a view that calls an event for data preparation. You can simulate this to a page controller.
ColdBox MVC, Tutorials, Tutorials 0

Spry and ColdBox, what a great combination!

Luis Majano
Oct 15, 2008


Ernst van der Linden has just finalized his Spry Plugin for ColdBox and it totally rocks. It really simplifies the usage of Spry within any ColdBox application. Not only that, but he has compiled an incredible demo application that you can even download and check out online. The demo shows off some of the techniques, but you can do so much more. You can also find more plugins and interceptors at the ColdBox Code Depot Live Demo So please enjoy this great addition.

ColdBox MVC, News, Plugins, Tutorials 0

ColdBox 2.5.2 and New Official ColdBox Website Released Today!

Luis Majano
Oct 15, 2008


ColdBox 2.5.2 is now available! This is an important update that will fix several bugs and some new updates. Also, not only is the new version out, but the new Official ColdBox Website. It has a spanking new look and its full of information for all users. There are several announcements on it, as well as the starting point of turning ColdBox into a Professional Open Source Project. So 2008 will sure be an interesting year for ColdBox, so stay tuned as the website gathers momentum and the next versions are already in the works.

As a sidenote, the entire new website is based on the following technologies that ColdBox recommends as a base for all web development projects:

ColdBox MVC, News, Releases 7

Ernst has done it again: ColdBox WebChart3D Plugin!

Luis Majano
Oct 15, 2008


Ernst has done it again! Good job! He has just released his ColdBox WebCharts3D Plugin and it really rocks. So if you are interested in adding webcharts3D functionality to your ColdBox applications, you can do so with ease. Also, webcharts3D is included in ColdFusion.

So enjoy!! This has been added to the code depot also. Below are some samples of the types of charting you can do:

ColdBox MVC, News, Plugins 0

What Poll or Survey software or service to use? What is your opinion?

Luis Majano
Oct 15, 2008


I have been tinkering with the idea of setting up several polls or surveys in order to better get an opinion of the coldbox community. However, I wanted to ask the community what polling software or services they believe are good. I would prefer a solution where I wouldn't have to host it, but more of a service that can generate the HTML for me, sort of like: Or maybe a survey solution would work also. Anyways, I guess the less maintenance I have, the better. What are your thoughts? What would you recommend as far as polling or surveys goes?

ColdBox MVC, Community 3

New ColdBox Plugin: rssReader, get it from the code depot.

Luis Majano
Oct 15, 2008


I have completed a very cool rssReader plugin for the next installment of ColdBox. This is a stand alone plugin that I would like the community to try out and see if it would make sense to add it to the core plugins list for version 2.6.

What is so special on this plugin?

  • Uses a file caching technique by serializing/deserializing the rss structure into bytearrays.
  • The file cache is configurable and has an exposed API for you to use.
  • One standard format for RSS or ATOM feeds
  • ISO86901 and RFC822 Date Formatting and parsing. All dates are translated to standard coldfusion date strings. No need to translate or parse.
  • Easily to configure via your coldbox.xml.cfm
  • Ability to return feed items as a query or array of structures.

Those are some of the features of this plugin. The plugin is built using a cfhttp method, so its compatible with cf7 and cf8. Anyways, take it for a spin and let me know your thoughts on it. Especially if you think the plugin would be beneficial for the next ColdBox version 2.6

ColdBox MVC, News, Plugins, Releases 1

New ColdBox Plugin: rssGenerator, get it from the code depot.

Luis Majano
Oct 15, 2008


I have just posted a new plugin for ColdBox called rssGenerator. You can download the plugin pack from the code depot. This plugin is based on the idea of coldfusion 8's cffeed but for any CFMX engine. It will take a standardized structure and convert it into an RSS 2.0 feed. Also, since cffeed offers a capability called column mapper, then so does this plugin. You can pass an optional structure that maps your query's columns to the feed's standard names. That way, you can aggregate any query by just mapping its columns to the feed. Soooo easy!!

In most cases, a database table uses column names that differ from the column names you must use to create the feed. Therefore, you must use the columnmap attribute to map the input query column names to the required column names.

SELECT * FROM orders

ColdBox MVC, News, Plugins, Releases 0