online wrote:

Hi,
I have a CFC with several functions in it, i use one to decide what the
output should be, which then calls the appropriate output function.
I know having the html output in the CFC is not recommended, but in this
case it is not avoidable, and the functions that output, only do output, not
logic.
My problem is that if I use <cfsetting to stop the logic function from
outputting whitespace, I cannot put it above the <cfargument, and <cfvar
tags, so I still get around 20 lines of whitespace.
And if I use output="no", then the display functions (which have
output="yes") wont show anything.

Any help appreciated..
thanks
Adrian


Adrian,

I also read that your CFC also calls a third party CFC in one of your later posts - so I'm not going to suggest savecontent like I initially thought of. This may not be best practice - I have no clue. I was having a problem with whitespace today actually and remembered your post. I was able to fix that with a processing directive within my method however it prompted me to think if was possible to put a <cfprocessingdirective supresswhitespace="yes"> in the pseudo contructor (right after the cfcomponent tag) and close off the cfprocessingdirective tage after the last method in the component. Basically wrapping the entire CFC in the processingdirective (except for the Cfcomponent tags). I tried it and it worked for me on 6.1. However, in my test CFC I am using cfsavecontent and not outputting anything directly from a method. I don't know if this would work with using output=true in a method like in your CFC. I guess it's worth a try.

I'm curious if any one has a something to say good or bad regarding using this "solution" like in Adrian's problem? Is this going to do funky things to the CFML server?

.pjf
MaePub
----------------------------------------------------------
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]

Reply via email to