Besides, wrapping the whole CFC file in <cfsilent> will not have any effect
on whitespace output. That is because it is being used only in the context
of the CFC definition--not the execution of its methods. Those are two
distinct things. If you wanted to use <cfsilent> in a component, you would
really want to use it inside the individual methods:
<cffunction name="method1">
<cfsilent>
... DO SOME STUFF HERE ...
</cfsilent>
</cffunction>
The thing is though, that you would really only need to do this if you
specify output="true" for the method or don't specify anything at all.
Specifying output="false" does the same thing as cfsilent--even if you use
<cfoutput> inside the method.
Paul Kenney
[EMAIL PROTECTED]
916-212-4359
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Sean A Corfield
> Sent: Saturday, May 08, 2004 7:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [CFCDev] Use of cfsilent vs. output="no"
>
>
> On May 4, 2004, at 1:51 PM, Davis, Eric wrote:
> > I remember back when MX 6.0 first came out, it was highly
> recommended
> > to
> > wrap the body of a CFC in cfsilent tags (between the
> cfcomponent tags,
> > of course).
>
> Hmm, I don't remember ever hearing that recommendation...
>
> > I've just started another application, this time for 6.1,
> > and am just curious as to whether it's still necessary if I use the
> > output="no" attribute on my cfcomponent and cffunction tags.
>
> Stick to output="no" and don't worry about <cfsilent> would be my
> advice.
>
> > Also, I checked the Coding Guidelines and didn't see anything about
> > this.
>
> Yeah, the only thing in the guidelines about <cfsilent> is to
> wrap pure
> logic at the top of a CFM page if you can't split the logic
> out into a
> separate file (which would be the recommended approach).
>
> Regards,
> Sean
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> 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'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]