I was thinking on this last night, and although I too have lived by the "Keeping of 
CFC's purity" rule, i personally don't see the drawbacks in using it on the 
presentation layer side of things?

Like we so far have a dir structure of:

-AppRoot
-- WEB (Presentation Layer Crap here)
---0- FORMS
---0- ACTIONS
---0- VIEWS
---0- TagLib
---0- Assets
---0- ModuleA
---0- ModuleB
-- CORE (CFC, Biz Logic Here)
---0- Utils
---0- Hive
---0- ModuleA
---0- ModuleB
-- MEDIA (Document Management Crap here)
---0- PDF
---0- DOC
---0- CSV
---0- XLS
---0- EPS
---0- JPG
---0- MPG
---0- AVI
---0- etc..

So using this structure we are able to easily seperate our business logic of raw 
information (CFC without HTML) from our presentation layer CFC's (ie web interface). 
Having said that, what you can do in a CFC you could do in a CFIMPORT taglibrary, but 
the beneficial aspect of using CFC's is that you can instatiate the "inputs" or 
whatever the entities into say the application scope and refer to it through-out your 
application. If you use the CFIMPORT TagLibrary method of doing it, you'll end up 
having to place the cfimport tags at the top of every page context which would get 
tedious if you radically change your mappings or something like that.

So to answer your question, yes i think we will end up using a similiar method of 
development despite our peers giving us a big frown! (Since when does it say in the 
rules its got to be pure RAW data model and not HTML)

<insert 12 steps program speech here>
My Name is Scott Barnes and I am a HTML Inserter in CFC's.
</insert 12 steps program speech here>

Scott Barnes 
Snr Developer
eCommerce Department
Tourism Queensland / Sunlover Holidays
[EMAIL PROTECTED]
ph: (07) 3535 5066 






-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of webguy
Sent: Thursday, 20 March 2003 2:45 AM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Is anyone out there using cfc for GUI elements?


Apparently, I've lost all grammar skills. Sorry.

Here is that first line again....

Most of the time, we say it is good practise not to output HTML from your
CFCs
and cfc's model business objects etc. etc.

WG

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of webguy
Sent: 19 March 2003 16:32
To: [EMAIL PROTECTED]
Subject: [CFCDev] Is anyone out there using cfc for GUI elements?


Most of the time, we here don't put HTML into your cfc, cfc model data etc

My question is , is anyone out there using cfc to build GUI layouts and
components? Think flowlayouts and Jlabels in java.

so...

form.cfc is a collection of label.cfc 's and input.cfc

form.show() calls .show() for all its components, etc etc .

dateinput.cfc extends input.cfc and adds a JS date validation to it...

Just wondering if anyone has cfcs in this line ...

WG

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to