<?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: Magnolia and Railo Part 2: Templating and Paragraphs</title>
	<atom:link href="http://www.joshuafrankamp.com/blog/magnolia-and-railo-part-2-templating-and-paragraphs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joshuafrankamp.com/blog/magnolia-and-railo-part-2-templating-and-paragraphs/</link>
	<description>technology and some random stuff</description>
	<lastBuildDate>Thu, 11 Feb 2010 13:26:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matteo</title>
		<link>http://www.joshuafrankamp.com/blog/magnolia-and-railo-part-2-templating-and-paragraphs/comment-page-1/#comment-3901</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Thu, 11 Feb 2010 08:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshuafrankamp.com/blog/?p=79#comment-3901</guid>
		<description>Hi Frank, 
really nice approach!
We are a small company, in the past we spent our knowledge over Coldfusion technology and now we are moving towards Magnolia. 
I know that was possible to implement what you say but reading that you managed to make it work and that you provided a step-by-step tutorial... so nice!
Thanks a lot!

Matteo</description>
		<content:encoded><![CDATA[<p>Hi Frank,<br />
really nice approach!<br />
We are a small company, in the past we spent our knowledge over Coldfusion technology and now we are moving towards Magnolia.<br />
I know that was possible to implement what you say but reading that you managed to make it work and that you provided a step-by-step tutorial&#8230; so nice!<br />
Thanks a lot!</p>
<p>Matteo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfrank</title>
		<link>http://www.joshuafrankamp.com/blog/magnolia-and-railo-part-2-templating-and-paragraphs/comment-page-1/#comment-3893</link>
		<dc:creator>jfrank</dc:creator>
		<pubDate>Wed, 10 Feb 2010 06:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshuafrankamp.com/blog/?p=79#comment-3893</guid>
		<description>Greg,

I&#039;d love to pretend I know the exact answer to your question, but here are a few things I do know. 

1. I have used a modified jsp paragraph renderer and it seems to work, but its really kludgy. It wants to &quot;start the request over&quot; each time a requestDispatcher.include happens. Railo right now also wants to encode the output and put it on the OutputStream instead of using the Writer, which is another big problem because it munges everything.

2. Railo (and the language CFML) are incredibly powerful rapid application framework and language, and so not primarily for &quot;dumb&quot; templating. As such they do things like process events like onSessionStart and onApplicationStart, and generally have a whole range of enterprise class features (pdf creation, form building, trivially easy querying/grouped output, OO language constructs, mail, image manipulation). Exiting the template, back to the container for an include, context switching like this doesn&#039;t do anything for railo-&gt;railo, it only hurts performance. What we really want is to set the paragraph&#039;s context, and then call &lt;cfmodule /&gt; to the templatePath of the paragraph.

3. The reimplementation of &lt;cms:includeTemplate /&gt; is pretty clean, although it does rely on some of your underlying API. I would be sad to see some of those objects be hidden behind DI where I couldn&#039;t get a reference to them.  Check it out here: https://www.joshuafrankamp.com/svn/incubator/magnolia-railo-sample/trunk/tags/cms/includeTemplate.cfm It uses ParagraphManager&#039;s singleton nature to get a reference and perform the template lookups (although it wouldn&#039;t be that hard to look it up manually). I could always switch on the paragraphs type, and call the real &lt;cms:includeTemplate &gt; if it were anything else besides cfm.

Perhaps some of the Railo guys can come along and tell us how to call &lt;cfmodule /&gt; from an API perspective, because that would take care of our custom paragraph renderer.

Joshua</description>
		<content:encoded><![CDATA[<p>Greg,</p>
<p>I&#8217;d love to pretend I know the exact answer to your question, but here are a few things I do know. </p>
<p>1. I have used a modified jsp paragraph renderer and it seems to work, but its really kludgy. It wants to &#8220;start the request over&#8221; each time a requestDispatcher.include happens. Railo right now also wants to encode the output and put it on the OutputStream instead of using the Writer, which is another big problem because it munges everything.</p>
<p>2. Railo (and the language CFML) are incredibly powerful rapid application framework and language, and so not primarily for &#8220;dumb&#8221; templating. As such they do things like process events like onSessionStart and onApplicationStart, and generally have a whole range of enterprise class features (pdf creation, form building, trivially easy querying/grouped output, OO language constructs, mail, image manipulation). Exiting the template, back to the container for an include, context switching like this doesn&#8217;t do anything for railo->railo, it only hurts performance. What we really want is to set the paragraph&#8217;s context, and then call <cfmodule /> to the templatePath of the paragraph.</p>
<p>3. The reimplementation of <cms :includeTemplate /> is pretty clean, although it does rely on some of your underlying API. I would be sad to see some of those objects be hidden behind DI where I couldn&#8217;t get a reference to them.  Check it out here: <a href="https://www.joshuafrankamp.com/svn/incubator/magnolia-railo-sample/trunk/tags/cms/includeTemplate.cfm" rel="nofollow">https://www.joshuafrankamp.com/svn/incubator/magnolia-railo-sample/trunk/tags/cms/includeTemplate.cfm</a> It uses ParagraphManager&#8217;s singleton nature to get a reference and perform the template lookups (although it wouldn&#8217;t be that hard to look it up manually). I could always switch on the paragraphs type, and call the real <cms :includeTemplate > if it were anything else besides cfm.</p>
<p>Perhaps some of the Railo guys can come along and tell us how to call <cfmodule /> from an API perspective, because that would take care of our custom paragraph renderer.</p>
<p>Joshua</cms></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gjoseph</title>
		<link>http://www.joshuafrankamp.com/blog/magnolia-and-railo-part-2-templating-and-paragraphs/comment-page-1/#comment-3889</link>
		<dc:creator>gjoseph</dc:creator>
		<pubDate>Tue, 09 Feb 2010 22:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshuafrankamp.com/blog/?p=79#comment-3889</guid>
		<description>Hi Joshua,

Cool stuff! It&#039;s always great to see people digging into Magnolia and coming up with stuff we didn&#039;t think of !

Did you consider implementing a custom ParagraphRenderer for this? I don&#039;t know the Railo API, I&#039;m a little surprised it doesn&#039;t have entry points outside the servlet. Well, assuming it does, maybe you&#039;re going to tell me you would lose the JSP taglib support if you went that way ? We&#039;re actually currently working towards extracting (at least some of) the business off of our JSP tags, in order to facilitate integration with other rendering technologies. I might blog about that in the coming weeks, so keep your eyes peeled; I&#039;ll need feedback from people like you, to see if we&#039;re on the right track! ;)

Cheers,

-greg</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>Cool stuff! It&#8217;s always great to see people digging into Magnolia and coming up with stuff we didn&#8217;t think of !</p>
<p>Did you consider implementing a custom ParagraphRenderer for this? I don&#8217;t know the Railo API, I&#8217;m a little surprised it doesn&#8217;t have entry points outside the servlet. Well, assuming it does, maybe you&#8217;re going to tell me you would lose the JSP taglib support if you went that way ? We&#8217;re actually currently working towards extracting (at least some of) the business off of our JSP tags, in order to facilitate integration with other rendering technologies. I might blog about that in the coming weeks, so keep your eyes peeled; I&#8217;ll need feedback from people like you, to see if we&#8217;re on the right track! <img src='http://www.joshuafrankamp.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers,</p>
<p>-greg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfrank &#187; Magnolia and Railo, Together at Last</title>
		<link>http://www.joshuafrankamp.com/blog/magnolia-and-railo-part-2-templating-and-paragraphs/comment-page-1/#comment-3882</link>
		<dc:creator>jfrank &#187; Magnolia and Railo, Together at Last</dc:creator>
		<pubDate>Tue, 09 Feb 2010 05:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshuafrankamp.com/blog/?p=79#comment-3882</guid>
		<description>[...] merged app tutorials. Part one will walk through the merging of the two web apps into one. Part two shows how to enable Railo templating and explore the interaction between Magnolia and Railo. Part [...]</description>
		<content:encoded><![CDATA[<p>[...] merged app tutorials. Part one will walk through the merging of the two web apps into one. Part two shows how to enable Railo templating and explore the interaction between Magnolia and Railo. Part [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
