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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225865 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54