On Thu, May 1, 2008 at 3:21 PM, Dominic Watson <[EMAIL PROTECTED]> wrote: > > > > Why not? (asked looking for a legitimate reason, IE: x or y won't work > > properly if you do) > > There's no solid reason *not* to, that I'm aware of, other than design > choice. I have built a display framework like this in the past and after it > launched I found that there was no real reason *to* put this kind of display > logic in a cfc because regular templates and custom tags handle this > perfectly (and were designed for this purpose). The design choice is in > separating logic from display; components for logic, custom tags and > coldfusion templates for display; clean.
There didn't used to be CFCs... /memories :] It's cool this came up, because I've always had a problem with the "throw away" attitude I seem to see about views, or user interfaces, and MVCs. Like, with MG2, adding view mappings help me not have do a lot of cutting and pasting for standard display things. CSS is a great way of having generic views... I love it. So I'm starting to think, "what about ui components?" Maybe decorators? Like, I want to release some action packs some day (ha ha), and it would be pretty cool if it was easy to have them work across frameworks. It's sorta seeming to me like that would be easiest if I handled some of the views/UI "outside" the frameworks themselves. I don't want to have to maintain 5 different versions of the calendar view, ya know? "People" is another object that gets used mostly the same across projects... one "pretty print toString()" with a some CSS* tags could take care of 99% of your person "views". But it's all a matter of balance... and keeping UI and Core code distinct is of course always good, as distinction of concerns usually is. *maybe your own meta-langage, instead of CSS, so you could use advice and format for various outputs... So long as you keep your UI components loosely coupled to your core components, couldn't they be a Good Thing? :>e/\/ -- A wind has blown the rain away and blown the sky away and all the leaves away, and the trees stand. I think, I too, have known autumn too long. e. e. cummings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304630 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

