Personally, I don't see a reason not to have a separate CFC just for UI elements that go on a page. Basically, you have a page which calls a BL (business logic) CFC for logic and a UI (user interface) CFC for specific UI elements that go on the page with the business logic. Take an average blog for example. Most have a calendar on the side. Why is this not inside a blogui.cfc file with other specific UI elements that are re-used. Yes, a custom tag can be built for each of the UI elements but on an average blog, there are 4 or 5 different small side elements. A single location for all of them would make sense rather than 4 or 5 different modules. At the moment I'm not using CFCs for UI but for UI elements less than 10 lines long, it's looking good. > I don't think he means use UI and business together, but rather CFCs for > the > presentation. > > Mike? > > Ade > > -----Original Message----- > From: Bryan Stevenson [mailto:[EMAIL PROTECTED] > Sent: 03 March 2005 16:52 > To: CF-Talk > Subject: Re: (OO) UI in CFCs > > > It's a big no no....one of the points of using CFCs is to seperate > business > logic from the presentation layer > > I know it's possible....but it's also possible to put page header display > code in Application.cfm....but we don't do it ;-) > > Ultimately it's up to the developer ;-) > > Cheers > > Bryan Stevenson B.Comm. > VP & Director of E-Commerce Development > Electric Edge Systems Group Inc. > phone: 250.480.0642 > fax: 250.480.1264 > cell: 250.920.8830 > e-mail: [EMAIL PROTECTED] > web: www.electricedgesystems.com.cfm/54 > > > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197282 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

