I agree with Matt. Objects can exist at several levels. For example, all the Swing GUI elements are objects. So there is no problem with using an object to show text, draw a button etc. The trick is to make sure your object don't cross your tiers in a n-tier app.
In a "model1 app" (as SUN call it [1] ) is would be fine to output your html from a cfc, where in a "model2 App" it wouldn't... WG [1] http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_ 2e/web-tier/web-tier5.html section 4.4.1 Structuring the Web Tier > I disagree. It's certainly not the 'end of the world', but using direct > output from a method automatically means you won't be able to use the > result remotely via Flash (or as a WS). > > Again - this isn't horrible - but it's something you should bear in > mind. (And don't forget the lovely bug with CFCs stored in app/session > scopes - which will be fixed of course.) > > It is certainly not a rule or a best practice to avoid > > directly outputting from a CFC method. There are plenty of > > good reasons for doing so and making blanket statements like > > yours only lead to confusion. For example... > > > > WriteOutput(someCFC.someMethod()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

