Not that you *can't* output directly from CFCs, but I know many people will direct you against that practice.
Many people tend to wrap business logic, functions, etc within CFC methods. Then, they will use custom tags for the display of the content. The custom tags will use CFCs to get their content. All in all, you can do pretty much what you want to do. You are right in that using CFSAVECONTENT is a better solution than just outputting directly from the method, itself. M!ke -----Original Message----- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 2:47 PM To: CF-Talk Subject: CFC style question (for UI CFCs) Hi I'm just starting to play with creating CFCs for UI components and I have a question about style. Is it better/more convenient/more maintainable/more readable to use output=true in your CFC methods (so the html goes right into the output), or to use output=false and have the method return a string, which the caller then has to display? The output=true way is pretty easy, but how do you control white space within the CFC? (Plus, it feels a little funny to have a CFC, even a UI one, generate output directly.) The output=false way can be a pain to code (use cfsavecontent a lot in your methods, I guess?), and how do you succinctly get the returned content into the output when using <cfinvoke>? Opinions? Thanks Mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225868 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

