<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Writing Custom Facelet JSF Components</title>
	<atom:link href="http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/</link>
	<description>Because programming is depressing</description>
	<lastBuildDate>Thu, 05 Nov 2009 23:29:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adam</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-1031</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Fri, 18 Sep 2009 21:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-1031</guid>
		<description>I think there is a typo, and the label is supposed to come from 
UIComponent label = getChildren().get(1);

I&#039;m trying the code now.</description>
		<content:encoded><![CDATA[<p>I think there is a typo, and the label is supposed to come from<br />
UIComponent label = getChildren().get(1);</p>
<p>I&#8217;m trying the code now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: redmond</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-1021</link>
		<dc:creator>redmond</dc:creator>
		<pubDate>Mon, 31 Aug 2009 13:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-1021</guid>
		<description>first, thanks for the tutorial

writer.startElement(&quot;td&quot;, label);

btw, where the label comes from ?</description>
		<content:encoded><![CDATA[<p>first, thanks for the tutorial</p>
<p>writer.startElement(&#8220;td&#8221;, label);</p>
<p>btw, where the label comes from ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-863</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 02 May 2009 20:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-863</guid>
		<description>Sorry to have to add to my own post, but a clarification may be necessary.  I keep saying &quot;of the component you are overriding.&quot;  This is misleading.  You are overriding the combination of JSF component and renderer.  You are only writing/extending the renderer class.
Tom</description>
		<content:encoded><![CDATA[<p>Sorry to have to add to my own post, but a clarification may be necessary.  I keep saying &#8220;of the component you are overriding.&#8221;  This is misleading.  You are overriding the combination of JSF component and renderer.  You are only writing/extending the renderer class.<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-862</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 02 May 2009 20:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-862</guid>
		<description>Erik,
   You can specify a custom renderer for a standard jsf tag.  I wrote one for the richfaces inplaceSelect.
   N.B. I did this for facelets.  JSP may need a bit more.
   I created a custom taglib.xml file.  In there, I define a new tag item.  In this item, I specify a component tag.  In the component tag, define the component-type tag to match the JSF comonent type you are overriding.  In my case, this was: org.richfaces.InplaceSelect.  Then, add a renderer-type tag and give it a new type ( com.myDomain.InplaceSelectRenderer ).

  Then, in your faces-config.xml, define a render-kit with a new renderer tag.  3 tag are needed for the renderer: component-family, renderer-type, and renderer-class.  The component-family needs to match the family of the JSF component you are overriding.  The renderer-type must match the type specified in your custom tag definition.  The class is the FQN of your renderer class.
  I fumbled my way through this, trying different combos.  This way worked for me.  Hope it helps!</description>
		<content:encoded><![CDATA[<p>Erik,<br />
   You can specify a custom renderer for a standard jsf tag.  I wrote one for the richfaces inplaceSelect.<br />
   N.B. I did this for facelets.  JSP may need a bit more.<br />
   I created a custom taglib.xml file.  In there, I define a new tag item.  In this item, I specify a component tag.  In the component tag, define the component-type tag to match the JSF comonent type you are overriding.  In my case, this was: org.richfaces.InplaceSelect.  Then, add a renderer-type tag and give it a new type ( com.myDomain.InplaceSelectRenderer ).</p>
<p>  Then, in your faces-config.xml, define a render-kit with a new renderer tag.  3 tag are needed for the renderer: component-family, renderer-type, and renderer-class.  The component-family needs to match the family of the JSF component you are overriding.  The renderer-type must match the type specified in your custom tag definition.  The class is the FQN of your renderer class.<br />
  I fumbled my way through this, trying different combos.  This way worked for me.  Hope it helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jwebuser</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-836</link>
		<dc:creator>Jwebuser</dc:creator>
		<pubDate>Fri, 13 Feb 2009 07:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-836</guid>
		<description>Thanks a lot for this tutorial.

It helped me much.

Greetings. ;-)</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this tutorial.</p>
<p>It helped me much.</p>
<p>Greetings. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gorlok</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-833</link>
		<dc:creator>Gorlok</dc:creator>
		<pubDate>Fri, 30 Jan 2009 18:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-833</guid>
		<description>Sorry, I have found my problem: a f*cking typo! :p</description>
		<content:encoded><![CDATA[<p>Sorry, I have found my problem: a f*cking typo! :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gorlok</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-832</link>
		<dc:creator>Gorlok</dc:creator>
		<pubDate>Fri, 30 Jan 2009 16:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-832</guid>
		<description>Good and nice post.

I have a problem. Perhaps you can help me. 

Your component is self-rendered, but I need to use another class for render.

It seens like tableRow.renderer has no effect in your example.

Can you explain me how to do a not self-rendered component with Facelets? I have tried without any success until now :(

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Good and nice post.</p>
<p>I have a problem. Perhaps you can help me. </p>
<p>Your component is self-rendered, but I need to use another class for render.</p>
<p>It seens like tableRow.renderer has no effect in your example.</p>
<p>Can you explain me how to do a not self-rendered component with Facelets? I have tried without any success until now <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://depressedprogrammer.wordpress.com/2008/12/21/writing-custom-facelet-jsf-components/#comment-829</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Thu, 15 Jan 2009 14:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://depressedprogrammer.wordpress.com/?p=63#comment-829</guid>
		<description>Hi!

Nice tutorial. How would you go about implementing a custom renderer for a standard jsf html tag with Facelets?

Or, to be precise, is there any way of substituting a custom renderer which doesn&#039;t render a bunch of HTML table tags instead of the standard one, for all instances of h:selectOneRadio, while still retaining all of that tag&#039;s functionality in terms of bean binding, etc.

The documentation on this type of stuff is certainly pretty thin...

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Nice tutorial. How would you go about implementing a custom renderer for a standard jsf html tag with Facelets?</p>
<p>Or, to be precise, is there any way of substituting a custom renderer which doesn&#8217;t render a bunch of HTML table tags instead of the standard one, for all instances of h:selectOneRadio, while still retaining all of that tag&#8217;s functionality in terms of bean binding, etc.</p>
<p>The documentation on this type of stuff is certainly pretty thin&#8230;</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
