On Monday, January 12, 2004, at 01:01 PM, Roland Collins wrote:

I think that in most cases, accessing the form vars in a component ruins the
separation of business and display logic . . . which may be OK depending on
how much of a purist you are.

As Sean said, it all depends on your architecture. I use an architecture that uses a layer of CFCs to handle form submissions, and I love it (though I am clearly in the minority). That layer of CFCs delegates to other CFCs, which eventually redirect to CFM pages for presentation purposes. The different layers of the application are very distinct and very easy to maintain and extend. Submitting forms directly to CFCs feels very natural to me since when I was a Java developer, all forms would submit to a servlet as opposed to other JSPs.


Saying that you should not submit a form to a CFC is like saying you should not put HTML in a component. If you know what you are doing and it fits in with your architecture, there's no reason not to do it.

Christian

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


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

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to