That is correct, CFC's are really used for business logic. Not that they
can't be used for output, just that it makes for ugly coding in my opinion.

Keep things simple and in their place, and it will make for easier debugging
and maintenance further down the track.


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273



-----Original Message-----
From: Jaime Metcher [mailto:[EMAIL PROTECTED] 
Sent: Monday, 10 September 2007 1:57 PM
To: CF-Talk
Subject: RE: Odd behavior when using cfform inside a CFC

Charles,

Nothing obvious, but a couple of questions come to mind:
1. Is it just the javascript that's missing i.e. the other content is OK?
2. Is the CFC instance cached e.g. in session or application scope?

Also, I know that was only pseudocode, but given that "var" is a reserved
word it looks a bit dodgy.  You'd want to at least var scope that result
variable, e.g.

<cfset var result = "">
<cfsavecontent variable="result">
etc.


@Andrew:
You're implying that the "V" layer in MVC not be implemented using CFCs,
right?  Any particular reason why?

Jaime Metcher


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288071
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