OUTPUT="false" is a post-processing thing. Basically any output that would have been written to the stream by the function is thrown away. An exception in a request implicitly flushes all existing buffers to the stream, and then ends the requests, so that in-function buffer that would have been ignored when the function finished won't ever get to the 'ignore' phase of it's life, so it'll be flushed just like all the other buffers.
Interestingly, BlueDragon DOESN'T share this behaviour. The OUTPUT attribute seems to be a compile-time flag. I found it to be a greatly troubling difference when trying to debug, because it forced you to go through your entire app (or at least the function in the function stack) and set OUTPUT=true if you wanted to do a dump/abort inside a function. Very much a pain. cheers, barneyb On 6/23/05, Roland Collins <[EMAIL PROTECTED]> wrote: > > > > Actually, dosen't <cfdump var="#x#"><cfabort> override that setting? It > does for me in every other function, but I haven't tested onRequest. > > > > ________________________________ > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Jeff Anderson > Sent: Thursday, June 23, 2005 11:17 AM > To: [email protected] > Subject: Re: [CFCDev] cffunction output attribute, onRequestStart login > problem > > > > > if you use output="false" no html is generated by the function...this means > no cfoutput, no dumping, and if in onRequest*() it means no pages...in fact > in onRequest you have to have output="true" (which is the default) if you > want to show any page > > > On 23 Jun 2005 14:56:40 -0000, [EMAIL PROTECTED] < > [EMAIL PROTECTED]> wrote: > > I learned something about coldfusion functions that I didn't know before: > if you call a function that has output="true" from inside a function with > output="false", nothing gets displayed. Ex: > > > > <cffunction name="testoutput" > output="true" returntype="void"> > > Don't want this to show. > > <cfinvoke method="showoutput"/> > > </cffunction> > > <cffunction name="showoutput" output="false" returntype="void"> > > I want this to show. > > </cffunction> > > <cfinvoke method="testoutput"/> > > > > I only mention this because of a problem it's causing me. > > > > I'm using the > Application.cfc onRequestStart method to do my auth/login stuff. When > someone > needs to login, I need to present them with a login form. <cfinclude .../> > won't show if output="false" for the function. I tried to put my cfinclude > inside a cffunction with output="true", but that didn't solve my problem > either. > > > > I would like to keep my whitespace generation to a minimum without tightly > formatting my onRequestStart method. > > > > Any ideas? > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone ( www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > > > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > ---------------------------------------------------------- > > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
