<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Outputting content from within a method</title>
	<atom:link href="http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/</link>
	<description>Rich Internet Application development</description>
	<pubDate>Wed, 07 Jan 2009 04:35:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike Kelp</title>
		<link>http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/comment-page-1/#comment-56</link>
		<dc:creator>Mike Kelp</dc:creator>
		<pubDate>Wed, 13 Dec 2006 16:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/#comment-56</guid>
		<description>&lt;p&gt;While I understand your concerns about outputting display within a method, I don't see what is wrong with putting a reusable piece of display code this way in a CFC if that's what you see fit.&lt;/p&gt;
&lt;p&gt;I for one use this in several situations, but instead of dumping the string out with output="true" I return the string so I can decide what to do with it afterwards as you mentioned you like to do otherwise. Then you have a more conventional usage.&lt;/p&gt;
&lt;p&gt;An example of where I use this is form validation. I have a core FormValidation CFC that manages validation rules and performs validation on a structure.I then have a FormValidationUI object that allows me to make a conveniently pluggable (and consistent) display for my forms when I add validation to them. The FormValidationUI object has getDisplayHtml() and getJavascript() functions to for my resulting display code.&lt;/p&gt;
&lt;p&gt;Anyway, great post!&lt;/p&gt;
&lt;p&gt;Mike.
&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>While I understand your concerns about outputting display within a method, I don&#8217;t see what is wrong with putting a reusable piece of display code this way in a CFC if that&#8217;s what you see fit.</p>
<p>I for one use this in several situations, but instead of dumping the string out with output=&#8221;true&#8221; I return the string so I can decide what to do with it afterwards as you mentioned you like to do otherwise. Then you have a more conventional usage.</p>
<p>An example of where I use this is form validation. I have a core FormValidation CFC that manages validation rules and performs validation on a structure.I then have a FormValidationUI object that allows me to make a conveniently pluggable (and consistent) display for my forms when I add validation to them. The FormValidationUI object has getDisplayHtml() and getJavascript() functions to for my resulting display code.</p>
<p>Anyway, great post!</p>
<p>Mike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/comment-page-1/#comment-54</link>
		<dc:creator>Michael Sharman</dc:creator>
		<pubDate>Wed, 13 Dec 2006 12:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/#comment-54</guid>
		<description>Hi dc,

&gt;your CSS ain’t working for me

Yeah I'm in the middle of finding a new host, as usual it's a long process!

Sorry about that :)</description>
		<content:encoded><![CDATA[<p>Hi dc,</p>
<p>>your CSS ain’t working for me</p>
<p>Yeah I&#8217;m in the middle of finding a new host, as usual it&#8217;s a long process!</p>
<p>Sorry about that <img src='http://www.chapter31.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dc</title>
		<link>http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/comment-page-1/#comment-52</link>
		<dc:creator>dc</dc:creator>
		<pubDate>Wed, 13 Dec 2006 11:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2006/12/12/outputting-content-from-within-a-method/#comment-52</guid>
		<description>&lt;p&gt;I've been struggling with this myself and I don't like output in cffunction.  Unfortunately for me, Peter Bell has a very good argument over in his blogs for using CFC for presentation....&lt;/p&gt;
&lt;p&gt;http://www.pbell.com/index.cfm/2006/12/6/Architecting-Your-Views-Part-3-A-Proposed-Solution&lt;/p&gt;
&lt;p&gt;(PS, I came from fullasagoog and your CSS ain't working for me, it is when I visit your site directly tho)
&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been struggling with this myself and I don&#8217;t like output in cffunction.  Unfortunately for me, Peter Bell has a very good argument over in his blogs for using CFC for presentation&#8230;.</p>
<p><a href="http://www.pbell.com/index.cfm/2006/12/6/Architecting-Your-Views-Part-3-A-Proposed-Solution" rel="nofollow">http://www.pbell.com/index.cfm/2006/12/6/Architecting-Your-Views-Part-3-A-Proposed-Solution</a></p>
<p>(PS, I came from fullasagoog and your CSS ain&#8217;t working for me, it is when I visit your site directly tho)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
