Viewing by month: October 2007


CFGrid Issues - CFGridRow Values that Contain Commas

Posted on Oct 11, 2007

I am working on something I hope to announce soon and was trying some of the new ColdFusion 8 Ajax UI functionality, including the updated CFGrid tag. However, I ran into one issue. One of my CFGridRow values contains a comma, but the CFGrid would shove this to the next column by default. The documentation regarding this says the following regarding the value attribute of CFGridRow:

Comma-delimited list of column values. If a value contains a comma, it must be escaped with another comma.

What exactly does that last part mean? I tried replacing the commas with two commas or using the standard RegEx escape character \ before my commas to no avail. Finally, I decided to replace all commas in my text with '&##44' (the double pound is obviously to escape it for CF purposes) and that worked. Nonetheless, I don't think that is what they intended in the docs. Anybody know what they mean?

 Continue Reading →


Where Should Server-Side Form Validation Go?

Posted on Oct 10, 2007

I am working on some internal training at my day job on using object-oriented programming best practices in ColdFusion as well as Mach-II. As part of this, I am building a sample application based upon my Objects and Composition - No Framework tutorial. This includes a number of forms that all interact to allow you to create the example "Xbox console" objects that I used in my example. Its funny when you are trying to build an application for the real-world, you often go with the solution that is expedient and works but when it is for teaching purposes, you might prefer to actually confirm that this is the (or a) "right way" to do things.

One question that I am trying to get a handle on is where is the best place to put server-side form validation. The most common place I have seen recommended by several prominent folks within the community is that validation should live within the bean. Along these lines my generator actually does generate a validate() method. Others have also looked into this topic lately. Jeff Chastain of Alagad wrote several entries on the topic earlier this year. His posts focused on a more generic server-side validation framework. Clearly there is no single answer to this question. However, I am finding the more I think about it, I don't like either of these solutions. Let me explain and then discuss where I have settled, at least for the moment.

 Continue Reading →


ColdFusion Open-Source Update - October 8, 2007

Posted on Oct 08, 2007

Count 'em...six new projects and six updates this week. Thankfully we had seven rather six tutorials or this would have become the Open-Source Update of the Beast. Perhaps it is because it is October and Halloween is near and, fittingly, ComputerWorld recently declared ColdFusion undead. Unfortunately (or fortunately depending on your perspective), I think this means that ColdFusion must now feast on the flesh of living languages. Watch out PHP!

 Continue Reading →


MAX Wrap-Up - The Big Picture

Posted on Oct 04, 2007

Max Keynote Stage
MAX Keynote Stage
Now that I am back at work (groan), I thought it worthwhile to take a look back at MAX and examine some overall impressions of Adobe's direction. First, let me say that I am pleased both with the general direction of Adobe as I see it, as well as ColdFusion's place within that, which seems secure. I actually spent much of the conference focused on products other than ColdFusion, specifically Flex and AIR. This is one of the great things about MAX is that you can get a great overall sense of Adobe products and can attend sessions covering a variety of them. So, without further adieu, here's my impressions of the company's direction - none of which I think were explicitly stated, so these are simply my opinion.

 Continue Reading →


ColdFusion Sneak Peak at MAX - ColdFusion and AIR

Posted on Oct 02, 2007

In the sneak peak for ColdFusion, Hemant Khandewal shows how Coldfusion can create an offline/online AIR application using the next version of ColdFusion. Despite some initial technical difficulties, he shows an application built using the new Coldfusion 8 CFAjax tags.

Hemant wants to convert the application to an AIR application and make it available in an offline mode. Offline submission of data would synchronize when the person returns online. He does this by adding a cfairaccess tag to the page. ColdFusion then generates all the code for the AIR application to store all its data into the local database, and then the page is saved as HTML and compiled into an HTML/JavaScript AIR application with the full functionality retained.

Lastly, Hemant demonstrates how offline data is sent to the sever. This uses a coldfusion.air.submitForm function. Once this is done, when a person is in offline mode the data is put into an unsent items. Once the person gets back into online mode, the data is synchronized by being sent to the server.

This is great news in my opinion for the future of ColdFusion and deeper integration with AIR, which is an obvious priority for Adobe.

 Continue Reading →


|

About

My name is Brian Rinaldi and I am the Web Community Manager for Flash Platform at Adobe. I am a regular blogger, speaker and author. I also founded RIA Unleashed conference in Boston. The views expressed on this site are my own & not those of my employer.