Sorry forgot to answer about performance. I have done any testing to see
what the difference in performance would be between outputting HTML
directly or using cfsavecontent. However, it is quite obvious using
cfsavecontent has more overhead because you now have two cfoutput calls
instead of one as well as wrapping one of those calls inside a custom
tag.

Matt Liotta
President & CEO
Montara Software, Inc.
http://www.montarasoftware.com/
888-408-0900 x901

> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 5:59 PM
> To: CF-Talk
> Subject: RE: CFC output
> 
> But you would still have one CFC that would be using only cfreturn,
> whereas another CFC would handle taking the result and displaying it,
> correct? In that regards, you would (or could have) built the lower
CFC
> in such a way so that it would not only work with the higher CFC
caller,
> but also a flash or WS caller. Again, I'm just saying that it _may_ be
> best to plan for the future and _default_ to not outputting directly,
> that way if you do change your mind later, you aren't going to have to
> recode a bunch of crap. Also, I have not seen the speed differences
you
> mentioned earlier. What kind of #s are you seeing? (Rough is fine.)
> 
>
=======================================================================
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> 
> Email    : [EMAIL PROTECTED]
> WWW      : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda
> 
> > -----Original Message-----
> > From: Matt Liotta [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 09, 2002 4:44 PM
> > To: CF-Talk
> > Subject: RE: CFC output
> >
> >
> > Not in MVC. In MVC the model, the view, and the controller
> > are all separate objects. It is certainly valid to use a CFC
> > to represent each of these pieces and as such there is no
> > calling template.
> >
> > Matt Liotta
> > President & CEO
> > Montara Software, Inc.
> > http://www.montarasoftware.com/
> > 888-408-0900 x901
> >
> > > -----Original Message-----
> > > From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, December 09, 2002 4:30 PM
> > > To: CF-Talk
> > > Subject: RE: CFC output
> > >
> > > Does this back up what I said though? If you break away the
display
> > from
> > > the logic used to generate it, wouldn't the display be left to the
> > > calling template and not the CFC? Ie, for the method, um,
whatever,
> > the
> > > method would return a string and the caller would handle
outputting,
> > or
> > > perhaps saving it to a file, whatever, the point is that the CFC
> > > wouldn't output, it would just return the result. The caller would
> > > handle the result.
> > >
> > >
> > ==============================================================
> > =========
> > > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> > >
> > > Email    : [EMAIL PROTECTED]
> > > WWW      : www.camdenfamily.com/morpheus
> > > Yahoo IM : morpheus
> > >
> > > "My ally is the Force, and a powerful ally it is." - Yoda
> > >
> > > > -----Original Message-----
> > > > From: Kevin Bridges [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, December 09, 2002 3:23 PM
> > > > To: CF-Talk
> > > > Subject: RE: CFC output
> > > >
> > > >
> > > > Think we should listen to Matt on this one ... 3 letters
> > for dealing
> > > > with
> > > > cfcs: MVC (Model - View - Controller) ... learn it, live it,
love
> > it.
> > > >
> > > > Kevin Bridges
> > > >
> > > > -----Original Message-----
> > > > From: Matt Liotta [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, December 09, 2002 2:09 PM
> > > > To: CF-Talk
> > > > Subject: RE: CFC output
> > > >
> > > > The logic used to derive those results should be
> > decoupled from the
> > > > display.
> > > >
> > >
> > >
> > >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to