CFFlush Does Not Work Inside ColdFusion 8's CFLayout Tag

Posted October 10, 2007 at 2:18 PM

Tags: ColdFusion

Very minor note (and probably irrelevant to most of you), but last night at the New York ColdFusion User Group, I discovered that CFFlush does not work inside of ColdFusion 8's new CFLayout tag (and other layout based tags most likely). While this might not seem like a big deal, just realize that if you use CFLayout to build your entire site structure, this means that content cannot be flushed to the client until the entire page has been constructed on the ColdFusion application server.

Again, this probably doesn't mean anything to most of you, and for those of you who use CFSaveContent-based frameworks, this is something you are used to; however, for me, somehow, in my gut, I just feel that CFFlush is important. I can't tell you exactly why, I just feel it in my core.

Post Comment  |  Ask Ben  |  Print Page


You Might Also Be Interested In:



Learning ColdFusion 9 - ColdFusion 9 tutorials, samples, examples, demos

Reader Comments

Oct 10, 2007 at 3:00 PM // reply »
3 Comments

Also, cflayout tags wont work correctly on a full CSS layout, the Database Explorer application of Raymond Camden, doesnt work for me on FULL CSS layouts.


Oct 11, 2007 at 4:29 AM // reply »
12 Comments

yeah, I have problems with cflayout working sometimes, I believe it is something to do with the point at which the CF javascript and css files are included in the page.

I think the recent update to CF was supposed to address something like this..

Mat


Oct 11, 2007 at 11:41 AM // reply »
92 Comments

Ben you are the only developer who even uses cfflush. What a waste of a post and time! Sheesh! :) I tried the tag a few months back out of curiosity but never have had a need for it. How was the presentation? Hopefully you learned some neat things on cflayout.


Oct 11, 2007 at 11:52 AM // reply »
7,487 Comments

Great, now I have to do a post on the valid uses of CFFlush ;)

It was ok. I think the layout things that are going to be most useful are the ones that are tied to AJAX content updates. The CSS aspects I was not all that impressed with. Of course, we didn't cover it in-depth, that was just my preliminary feeling.


Oct 11, 2007 at 6:52 PM // reply »
4 Comments

I have to agree with Ben here. I only came across CFFlush relatively recently (though I'm sure I tried to find out if this was possible many years ago - perhaps it was introduced later), and do think it has a useful role to play in certain circumstances.

For one, it's very useful for providing feedback to the user when a template is performing alot of processing (importing a CSV file for instance or sending out a large number of e-mails). I've also toyed with the idea (although only a little) of using the ability to return output while a template is still processing to build a nice Javascript update bar or panel.

While it's not an everyday 'cool' feature, it is one of those things that just comes in damn handy for certain tasks we have to perform from time to time..


Post Comment  |  Ask Ben

Recent Blog Comments
Mar 12, 2010 at 2:00 PM
Tim Cracked The GMail - CFMailPart Puzzle!
@Mik Muller, Exactly what I was encountering... complaints of empty emails. I'm really surprised no one else has reported this anywhere. I realize text emails may seem old school but there are a lot ... read »
Mar 12, 2010 at 1:50 PM
Using jQuery's SlideUp() and SlideDown() Methods With Bottom-Positioned Elements
That's exactly the situation that came to my mind the other day. Saved my life there! xoxo ... read »
Mar 12, 2010 at 1:26 PM
Tim Cracked The GMail - CFMailPart Puzzle!
@Bruce Holm, Nice. This explains why some people reply with "email was empty" to me. Good work! ... read »
Mar 12, 2010 at 12:32 PM
Ask Ben: Ending ColdFusion Session When User Closes Browser
thanks, it helps me. ... read »
Mar 12, 2010 at 9:51 AM
FLEX On jQuery: Decouple Components With Event Listeners
@Tyson, Sounds awesome. I know very little about FLEX itself, other than these few interactions I've had with FLEX developers. As you start to learn stuff, I'd to hear how it influences your Javasc ... read »
Mar 12, 2010 at 9:44 AM
FLEX On jQuery: Decouple Components With Event Listeners
This is an excellent example of loose coupling. I've been meaning to learn more about Flex and I think seeing how you've applied it to your example may be just what I need to push me over the edge a ... read »
Mar 12, 2010 at 9:35 AM
Google Maps Not Working in Internet Explorer (IE)
@James Can you provide a link to your map please. Ralph ... read »
Mar 12, 2010 at 9:19 AM
Google Maps Not Working in Internet Explorer (IE)
I'm working on a project and am having a similar problem. The page "loads fine" in IE6/7 so long as I don't expect markers to load. Using jquery1.4, easing plugin, maps api 2, extinfowindow, and ma ... read »