<?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: Runtime dispatching freemarker macros for pojo views</title>
	<atom:link href="http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/</link>
	<description>software engineering for beginners</description>
	<lastBuildDate>Mon, 23 Jan 2012 06:17:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: D Kevin</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-5460</link>
		<dc:creator>D Kevin</dc:creator>
		<pubDate>Tue, 25 Oct 2011 20:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-5460</guid>
		<description>I found your article pretty handy. I am trying to relate it to my requirement.
I need to write a freemarker macro which would take a &quot;java bean object&quot; as argument.
This macro should pass this &quot;bean object&quot; to java class reflection class, get all the bean properties and render it to html page.

After going through your post, I feel it&#039;s definitely doable by doing some brainstorming.
Any help / comments would be appreciated !!!</description>
		<content:encoded><![CDATA[<p>I found your article pretty handy. I am trying to relate it to my requirement.<br />
I need to write a freemarker macro which would take a &#8220;java bean object&#8221; as argument.<br />
This macro should pass this &#8220;bean object&#8221; to java class reflection class, get all the bean properties and render it to html page.</p>
<p>After going through your post, I feel it&#8217;s definitely doable by doing some brainstorming.<br />
Any help / comments would be appreciated !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cherouvim</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-4823</link>
		<dc:creator>cherouvim</dc:creator>
		<pubDate>Fri, 25 Mar 2011 20:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-4823</guid>
		<description>@Anon: I&#039;m not sure if you understood this post.

I use Java to full potential but default web templating option (JSP) suffers. I present alternatives and compare with other languages.</description>
		<content:encoded><![CDATA[<p>@Anon: I&#8217;m not sure if you understood this post.</p>
<p>I use Java to full potential but default web templating option (JSP) suffers. I present alternatives and compare with other languages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-4822</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Fri, 25 Mar 2011 19:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-4822</guid>
		<description>This is a typical (and meaningless) argument &quot;strong-typed language vs weak-typed language&quot;. Why bother with Java if you are not planning to take advantage of it?</description>
		<content:encoded><![CDATA[<p>This is a typical (and meaningless) argument &#8220;strong-typed language vs weak-typed language&#8221;. Why bother with Java if you are not planning to take advantage of it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevin</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1351</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Thu, 29 Apr 2010 13:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1351</guid>
		<description>You are a savior!</description>
		<content:encoded><![CDATA[<p>You are a savior!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cherouvim</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1350</link>
		<dc:creator>cherouvim</dc:creator>
		<pubDate>Thu, 29 Apr 2010 05:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1350</guid>
		<description>@kevin: yes it&#039;s possible. In fact I&#039;m doing it all the time in a form handling framework I&#039;ve written.

&lt;#local fieldName=&quot;firstName&quot; /&gt;
${(&quot;person.&quot; + fieldName)?eval}

The above evaluates the expression ${person.firstName} which is what you want.</description>
		<content:encoded><![CDATA[<p>@kevin: yes it&#8217;s possible. In fact I&#8217;m doing it all the time in a form handling framework I&#8217;ve written.</p>
<p>< #local fieldName="firstName" /><br />
${(&#8220;person.&#8221; + fieldName)?eval}</p>
<p>The above evaluates the expression ${person.firstName} which is what you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevin</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1349</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Thu, 29 Apr 2010 02:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1349</guid>
		<description>I find your post intriguing and I&#039;m trying to do something similar... I want to invoke a particular getter based on the value that is in another value, so that I can use the same template to render multiple different types of pojos.  So I have a pojo of type Person and a sequence of attribute names like &quot;firstName&quot;, &quot;lastName&quot;, etc.  both of which were passed in at runtime.  Then I want my template to invoke pojo.firstName, pojo.lastName, etc to populate a table.  This same template would be able to fill the table with data from any kind of pojo, as long as you also passed in the corresponding sequence of attribute names you wished to pull from the pojo.  Do you happen to know if this is possible in Freemarker?</description>
		<content:encoded><![CDATA[<p>I find your post intriguing and I&#8217;m trying to do something similar&#8230; I want to invoke a particular getter based on the value that is in another value, so that I can use the same template to render multiple different types of pojos.  So I have a pojo of type Person and a sequence of attribute names like &#8220;firstName&#8221;, &#8220;lastName&#8221;, etc.  both of which were passed in at runtime.  Then I want my template to invoke pojo.firstName, pojo.lastName, etc to populate a table.  This same template would be able to fill the table with data from any kind of pojo, as long as you also passed in the corresponding sequence of attribute names you wished to pull from the pojo.  Do you happen to know if this is possible in Freemarker?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cherouvim</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1340</link>
		<dc:creator>cherouvim</dc:creator>
		<pubDate>Wed, 21 Apr 2010 10:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1340</guid>
		<description>@biddster: glad it helps.</description>
		<content:encoded><![CDATA[<p>@biddster: glad it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: biddster</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1339</link>
		<dc:creator>biddster</dc:creator>
		<pubDate>Wed, 21 Apr 2010 10:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1339</guid>
		<description>Good point. Thanks for the article, exactly what I needed. I&#039;m creating UI widget system using freemarker and this was just what I needed.</description>
		<content:encoded><![CDATA[<p>Good point. Thanks for the article, exactly what I needed. I&#8217;m creating UI widget system using freemarker and this was just what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cherouvim</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1336</link>
		<dc:creator>cherouvim</dc:creator>
		<pubDate>Tue, 20 Apr 2010 16:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1336</guid>
		<description>@biddster: Yes of course. I wrote this when I was still on JDK 1.4</description>
		<content:encoded><![CDATA[<p>@biddster: Yes of course. I wrote this when I was still on JDK 1.4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: biddster</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1335</link>
		<dc:creator>biddster</dc:creator>
		<pubDate>Tue, 20 Apr 2010 16:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1335</guid>
		<description>Could you not do issue.class.simpleName and avoid the splitting?</description>
		<content:encoded><![CDATA[<p>Could you not do issue.class.simpleName and avoid the splitting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Bartmann</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1189</link>
		<dc:creator>Bill Bartmann</dc:creator>
		<pubDate>Thu, 03 Sep 2009 19:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1189</guid>
		<description>Cool site, love the info.</description>
		<content:encoded><![CDATA[<p>Cool site, love the info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cherouvim</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1161</link>
		<dc:creator>cherouvim</dc:creator>
		<pubDate>Sat, 08 Aug 2009 17:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1161</guid>
		<description>Thanks Victor! Fixed.</description>
		<content:encoded><![CDATA[<p>Thanks Victor! Fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1160</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Sat, 08 Aug 2009 13:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1160</guid>
		<description>Now I noticed how badly HTML-tags worked in this comment field.

What I meant to say was:

(open-tag)#renderIssue issue /(closetag) should be

(open-tag)@renderIssue issue /(closetag).</description>
		<content:encoded><![CDATA[<p>Now I noticed how badly HTML-tags worked in this comment field.</p>
<p>What I meant to say was:</p>
<p>(open-tag)#renderIssue issue /(closetag) should be</p>
<p>(open-tag)@renderIssue issue /(closetag).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/comment-page-1/#comment-1159</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Sat, 08 Aug 2009 13:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cherouvim.com/runtime-dispatching-freemarker-macros-for-pojo-views/#comment-1159</guid>
		<description>Good article - it shows how flexible you can write Freemarker templates.

There is however a small bug:


--&gt;   &lt;--


... should be </description>
		<content:encoded><![CDATA[<p>Good article &#8211; it shows how flexible you can write Freemarker templates.</p>
<p>There is however a small bug:</p>
<p>&#8211;&gt;   &lt;&#8211;</p>
<p>&#8230; should be</p>
]]></content:encoded>
	</item>
</channel>
</rss>

