Posts Tagged ‘cfml’

cfspreadsheet for Railo

Thursday, June 2nd, 2011

If you’ve made the switch to Railo and find yourself missing the <cfspreadsheet> tag and its related functions, don’t fear. Andy Jarrett released an extension for Railo early this year to fill in that gap.

Read on to find out more.

Read the rest of this entry »

Railo: Form field [asset[file]] doesn’t exist or has no content

Wednesday, May 11th, 2011

I was trying to add file uploading to my Wheels + Railo application. But I kept getting this error message when trying to use <cffile action="upload">:

Form field [asset[file]] doesn’t exist or has no content

After a couple hours of beating my head against the wall, I realized that I didn’t set enctype="multipart/form-data" on the form tag.

Fortunately, this is a fairly simple fix using the Wheels startFormTag() form helper and its multipart argument.

Read the rest of this entry »

How to build an admin section in ColdFusion on Wheels

Tuesday, November 23rd, 2010

Every now and then, someone asks how to build an admin section into their ColdFusion on Wheels application. If they want for it to be in an admin folder, does that mean that you can only have an admin controller that stores everything needed?

Fortunately, one approach allows for you to split your admin section up into as many controllers as you need using inheritance and a feature called routes. Let’s discuss how.

Read the rest of this entry »

Updates to Wheels PluginManager and others

Wednesday, November 10th, 2010

I spent some time last night making some security updates to the PluginManager plugin and making sure that all of the plugins that I’ve submitted to cfwheels.org are compatible with the newly released ColdFusion on Wheels 1.1.

Read on for links to the plugins and descriptions that I entered in their change logs:

Read the rest of this entry »

Super-slow ColdFusion image processing

Monday, November 8th, 2010

I was excited to finally take some time to add the ability for people to upload screenshots in the ColdFusion on Wheels Site Directory when I ran into a big problem. When I started sending large screenshots to ColdFusion’s ImageScaleToWidth(), it would take 30+ seconds to do the processing. Unacceptable.

Read on to see how I ended up tackling this problem with <cfthread>

Read the rest of this entry »

Automatic data handler functions for partials in ColdFusion on Wheels 1.1

Tuesday, October 5th, 2010

Just over a year ago, I blogged about my implementation of the RSS aggregator for cfwheels.org using Yahoo! Pipes, FeedBurner, <cffeed>, and Wheels partials. Now that ColdFusion on Wheels version 1.1 is in beta (and almost complete), there is a new piece of functionality involving partials that makes my solution simpler.

Read on to learn more about automatic data functions for partials in Wheels and how it helped simplify my application.

Read the rest of this entry »

Add to the Flash with redirectTo() in ColdFusion on Wheels 1.1

Friday, October 1st, 2010

Another small enhancement added to the upcoming ColdFusion on Wheels 1.1 (now in beta). You can now add messages to the Flash from redirectTo() instead of needing to call flashInsert() separately.

Less code FTW! Read on for an example.

Read the rest of this entry »

New assetQueryString setting in ColdFusion on Wheels 1.1

Thursday, September 30th, 2010

The upcoming ColdFusion on Wheels 1.1 (now in beta) offers a new setting called assetQueryString that can help you more easily manage caching on the client side for assets like images, stylesheets, and JavaScript includes.

Read on for more information about the new setting and the problem that it helps solve.

Read the rest of this entry »

Structuring CFCs a little like Ruby

Tuesday, May 18th, 2010

As I hit the books and learned about Ruby on Rails a couple years ago, there was one thing that I admired about how Ruby handles public and private sections of classes.

How can I take a lesson from Ruby and apply it to my CFML coding? I’m glad that you asked! Read on for more details.

Read the rest of this entry »

Full CFScript CFCs aren’t yet where they need to be

Saturday, April 17th, 2010

A few months ago, I blogged about my excitement about the role that full script CFCs could have in an MVC stack, particularly with ColdFusion on Wheels. In my excitement to try out the new feature, I had spent much of a Saturday manually converting all of my components into CFScript components in my portal project called Administrivia.

Unfortunately, the CFScript part of ColdFusion isn’t quite where it needs to be yet. Read on to find out why.

Read the rest of this entry »