Thanks Dominic, 

I really got thrown into components last year, because the project that I
was on was built with components, and they had the headers, footers and
common layout objects in components. So, I rolled with it.

I'm really making sure that my data layer is separated, as I start making
more sense out of design patterns (Doug from Allagad did a fantastic
presentation on this at the last TACFUG meeting) I'll revise my
methodologies.

What makes sense to me right now, is use components as much as possible
where applicable, and separate out data, layout and "widgets". I stole the
concept of act_ files (form actions) from Fusebox, and the unique content is
loaded in cfm files...

Probably more information than anyone wanted to know, but that's my current
state of development.
-- 
Scott Stewart
ColdFusion Developer
 
SSTWebworks
4405 Oakshyre Way
Raleigh, NC. 27616
(919) 874-6229 (home)
(703) 220-2835 (cell)

-----Original Message-----
From: Dominic Watson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 01, 2008 5:21 PM
To: CF-Talk
Subject: Re: CSS page calls and image calls from a CFC

>
> 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.

Having said that, having an object that is an 'html framework' doesn't
present a particular problem if it is separated from business logic. Perhaps
someone can chime in with solid disadvantages to the display cfc approach -
for me, it is as simple as a) going with consensus b) making separation of
logic and display very clear.

I realised that changing framework isn't realistic halfway through (or more)
a project and I'm *not* saying *DONT* do what you are doing" Just raising it
as something to check out, if you weren't already aware, as you said you
were starting to write apps using cfcs. I personally found using an MVC
framework answered all the questions I had about creating apps utilizing
cfcs.

HTH

Dominic

-- 
Blog it up: http://fusion.dominicwatson.co.uk




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:304637
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to