<?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: Create a Common Facelets Tag Library: Share it across projects</title> <atom:link href="http://ocpsoft.com/opensource/create-common-facelets-jar/feed/" rel="self" type="application/rss+xml" /><link>http://ocpsoft.com/opensource/create-common-facelets-jar/</link> <description>&#34;Simple Software&#34;</description> <lastBuildDate>Sat, 13 Mar 2010 17:57:39 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Lincoln</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-1180</link> <dc:creator>Lincoln</dc:creator> <pubDate>Fri, 05 Feb 2010 22:15:26 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-1180</guid> <description>Hey Abdellah,You&#039;d have to ask that blog owner for more information. I know he was very successful getting it to work in his PrimeFaces project (there is a very active community on those forums, and he/they may be able to help you out.I hope this points you in the right direction!</description> <content:encoded><![CDATA[<p>Hey Abdellah,</p><p>You&#8217;d have to ask that blog owner for more information. I know he was very successful getting it to work in his PrimeFaces project (there is a very active community on those forums, and he/they may be able to help you out.</p><p>I hope this points you in the right direction!</p> ]]></content:encoded> </item> <item><title>By: abdellah</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-1178</link> <dc:creator>abdellah</dc:creator> <pubDate>Fri, 05 Feb 2010 11:24:46 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-1178</guid> <description>Hi lincoln,thank u for your Response.
i&#039;m not using jsf 2.0 ,and i try to crate a custom ResourcePhaseListener ,but it still not load the CSS and javascript files from the JAR-File.
In one custom Tag i have CSS inside like:a.button {
background: transparent url(images/But_norm_re.png) no-repeat 100% 0;
font-family: Arial, Helvetica, Geneva, Sans-Serif ;
}and the picture:But_norm_re.png still not appear!</description> <content:encoded><![CDATA[<p>Hi lincoln,</p><p>thank u for your Response.<br
/> i&#8217;m not using jsf 2.0 ,and i try to crate a custom ResourcePhaseListener ,but it still not load the CSS and javascript files from the JAR-File.<br
/> In one custom Tag i have CSS inside like:</p><p>a.button {<br
/> background: transparent url(images/But_norm_re.png) no-repeat 100% 0;<br
/> font-family: Arial, Helvetica, Geneva, Sans-Serif ;<br
/> }</p><p>and the picture:But_norm_re.png still not appear!</p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-1175</link> <dc:creator>Lincoln</dc:creator> <pubDate>Thu, 04 Feb 2010 16:08:34 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-1175</guid> <description>If you are using JSF2, you can use the built-in resource handling functionality. Such as... image=&quot;#{resource[&#039;images:back.jpg&#039;]}&quot;Which will look for ../WebContent/resources/images/back.jpg, and META-INF/resources/images/back.jpg (depending if you have placed these in your web root or a JAR file), and insert that image into the output.If you are not using JSF2, then you can create a custom Resources Servlet. Several example solutions can be found here:http://cagataycivici.wordpress.com/2006/05/09/jsf_serving_resources_from_a/</description> <content:encoded><![CDATA[<p>If you are using JSF2, you can use the built-in resource handling functionality. Such as&#8230; image=&#8221;#{resource['images:back.jpg']}&#8221;</p><p>Which will look for ../WebContent/resources/images/back.jpg, and META-INF/resources/images/back.jpg (depending if you have placed these in your web root or a JAR file), and insert that image into the output.</p><p>If you are not using JSF2, then you can create a custom Resources Servlet. Several example solutions can be found here:</p><p><a
href="http://cagataycivici.wordpress.com/2006/05/09/jsf_serving_resources_from_a/" rel="nofollow">http://cagataycivici.wordpress.com/2006/05/09/jsf_serving_resources_from_a/</a></p> ]]></content:encoded> </item> <item><title>By: abdellah</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-1173</link> <dc:creator>abdellah</dc:creator> <pubDate>Thu, 04 Feb 2010 15:52:29 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-1173</guid> <description>Hi Lincoln,thank you for this article!
Have you tried to include resources (js, css or images…) in the JAR file ?
Where should I put resources in the jar and how to reference it inside my facelet page?Thanks
Abdellah</description> <content:encoded><![CDATA[<p>Hi Lincoln,</p><p>thank you for this article!<br
/> Have you tried to include resources (js, css or images…) in the JAR file ?<br
/> Where should I put resources in the jar and how to reference it inside my facelet page?</p><p>Thanks<br
/> Abdellah</p> ]]></content:encoded> </item> <item><title>By: Brian LEathem</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-743</link> <dc:creator>Brian LEathem</dc:creator> <pubDate>Fri, 28 Aug 2009 16:36:08 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-743</guid> <description>Creating a custom resource resolver is unnecessary.  All you have to do is put your taglib and tags in the META-INF folder of your jar, and facelets will automatically resolve them.  You even don&#039;t  have to put the taglib in your web.xml.See:
https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-web
http://thomaswabner.wordpress.com/2008/06/25/reuse-facelets-xhtml-files-and-taglibs-from-jar-archives/</description> <content:encoded><![CDATA[<p>Creating a custom resource resolver is unnecessary.  All you have to do is put your taglib and tags in the META-INF folder of your jar, and facelets will automatically resolve them.  You even don&#8217;t  have to put the taglib in your web.xml.</p><p>See:<br
/> <a
href="https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-web" rel="nofollow">https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-web</a><br
/> <a
href="http://thomaswabner.wordpress.com/2008/06/25/reuse-facelets-xhtml-files-and-taglibs-from-jar-archives/" rel="nofollow">http://thomaswabner.wordpress.com/2008/06/25/reuse-facelets-xhtml-files-and-taglibs-from-jar-archives/</a></p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-211</link> <dc:creator>Lincoln</dc:creator> <pubDate>Sat, 21 Feb 2009 18:13:34 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-211</guid> <description>It sounds like the .jar file containing CustomResourceResolver is not on the build path.</description> <content:encoded><![CDATA[<p>It sounds like the .jar file containing CustomResourceResolver is not on the build path.</p> ]]></content:encoded> </item> <item><title>By: Keith Moore</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-210</link> <dc:creator>Keith Moore</dc:creator> <pubDate>Fri, 20 Feb 2009 00:21:16 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-210</guid> <description>I was able to get it to work by not putting the facelets.RESOURCE_RESOLVER context-param in the web.xml.  However, I had to put the CustomResourceResolver in my project source code.  I would like to put this in a common project since it will be the same for every project.  I dont want to have to copy and paste it into every new app and change the name to CustomResourceResolver.java.  I could probably modify the build script but the target project would have the package name of the common project.  This seems a little ugly.   Any thoughts on how to resolve this?</description> <content:encoded><![CDATA[<p>I was able to get it to work by not putting the facelets.RESOURCE_RESOLVER context-param in the web.xml.  However, I had to put the CustomResourceResolver in my project source code.  I would like to put this in a common project since it will be the same for every project.  I dont want to have to copy and paste it into every new app and change the name to CustomResourceResolver.java.  I could probably modify the build script but the target project would have the package name of the common project.  This seems a little ugly.   Any thoughts on how to resolve this?</p> ]]></content:encoded> </item> <item><title>By: FkJ</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-174</link> <dc:creator>FkJ</dc:creator> <pubDate>Mon, 02 Feb 2009 17:13:05 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-174</guid> <description>Thanks for the tutorial, helped me a lot.I had reRender problems with Tomcat 6  after packing templates in a JAR.Here is the solution:http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;p=4205508</description> <content:encoded><![CDATA[<p>Thanks for the tutorial, helped me a lot.</p><p>I had reRender problems with Tomcat 6  after packing templates in a JAR.</p><p>Here is the solution:</p><p><a
href="http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;p=4205508" rel="nofollow">http://www.jboss.com/index.html?module=bb&amp;op=viewtopic&amp;p=4205508</a></p> ]]></content:encoded> </item> <item><title>By: Mitch</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-167</link> <dc:creator>Mitch</dc:creator> <pubDate>Mon, 26 Jan 2009 14:42:07 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-167</guid> <description>Good tutorial.
But I can&#039;t get my Taglib to work.
It doesn&#039;t seem to find my TLD in Netbeans and when I deploy it, it won&#039;t work too. It just doesn&#039;t recognise my namespace.</description> <content:encoded><![CDATA[<p>Good tutorial.<br
/> But I can&#8217;t get my Taglib to work.<br
/> It doesn&#8217;t seem to find my TLD in Netbeans and when I deploy it, it won&#8217;t work too. It just doesn&#8217;t recognise my namespace.</p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/opensource/create-common-facelets-jar/comment-page-1/#comment-34</link> <dc:creator>Lincoln</dc:creator> <pubDate>Thu, 11 Sep 2008 04:17:38 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=13#comment-34</guid> <description>That&#039;s correct! I&#039;ve packaged the taglib with the JAR file and although Facelets complains, it still find it:Sep 11, 2008 12:14:32 AM com.sun.facelets.FaceletViewHandler initializeCompiler
SEVERE: Error Loading Library: /META-INF/taglib/facelets-common-taglib.xml
java.io.FileNotFoundException: /META-INF/taglib/facelets-common-taglib.xml
at com.sun.facelets.FaceletViewHandler.initializeCompiler(FaceletViewHandler.java:272)
at com.sun.facelets.FaceletViewHandler.initialize(FaceletViewHandler.java:161)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:537)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
---------
But this later:
Sep 11, 2008 12:14:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/WEB-INF/lib/facelets-common-taglib.jar!/META-INF/taglib/facelets-common-taglib.xml</description> <content:encoded><![CDATA[<p>That&#8217;s correct! I&#8217;ve packaged the taglib with the JAR file and although Facelets complains, it still find it:</p><p>Sep 11, 2008 12:14:32 AM com.sun.facelets.FaceletViewHandler initializeCompiler<br
/> SEVERE: Error Loading Library: /META-INF/taglib/facelets-common-taglib.xml<br
/> java.io.FileNotFoundException: /META-INF/taglib/facelets-common-taglib.xml<br
/> at com.sun.facelets.FaceletViewHandler.initializeCompiler(FaceletViewHandler.java:272)<br
/> at com.sun.facelets.FaceletViewHandler.initialize(FaceletViewHandler.java:161)<br
/> at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:537)<br
/> at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)<br
/> at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)<br
/> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)<br
/> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)<br
/> &#8212;&#8212;&#8212;<br
/> But this later:<br
/> Sep 11, 2008 12:14:32 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit<br
/> INFO: Added Library from: jar:file:/WEB-INF/lib/facelets-common-taglib.jar!/META-INF/taglib/facelets-common-taglib.xml</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: apache2-blow.brewers.dreamhost.com @ 2010-03-14 03:48:18 by W3 Total Cache -->