<?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: Adventures in JSF 2.0:  Hello World Tutorial using Maven 2, JSF 2, Facelets 2, and Weld</title>
	<atom:link href="http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/feed/" rel="self" type="application/rss+xml" />
	<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/</link>
	<description>Healthcare, Informatics, Software - in the real world.</description>
	<lastBuildDate>Mon, 22 Feb 2010 05:30:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bee</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-11171</link>
		<dc:creator>Bee</dc:creator>
		<pubDate>Mon, 22 Feb 2010 05:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-11171</guid>
		<description>I manage to get it running on tomcat 5.5.x. Thanks.</description>
		<content:encoded><![CDATA[<p>I manage to get it running on tomcat 5.5.x. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bee</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-11068</link>
		<dc:creator>Bee</dc:creator>
		<pubDate>Sun, 21 Feb 2010 12:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-11068</guid>
		<description>Thanks for the great tutorial. I wonder if it can be run in tomcat 5.5.x. I mean if JSF 2.0 and Weld can be run on tomcat 5.5.x.
I did manage to get it up and render the page. however, the el expression, both ${helloWord.text} and #{helloWorld.text}, are not evaluated.

Also this tutorial uses JSF RI from Sun, can you show me how to use it with MyFaces?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Thanks for the great tutorial. I wonder if it can be run in tomcat 5.5.x. I mean if JSF 2.0 and Weld can be run on tomcat 5.5.x.<br />
I did manage to get it up and render the page. however, the el expression, both ${helloWord.text} and #{helloWorld.text}, are not evaluated.</p>
<p>Also this tutorial uses JSF RI from Sun, can you show me how to use it with MyFaces?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Boscarine</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-7255</link>
		<dc:creator>Steven Boscarine</dc:creator>
		<pubDate>Fri, 08 Jan 2010 14:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-7255</guid>
		<description>Hello Ashley,
I apologize, but much as changed since that post was written. When that post was written, there were no weld archetypes.  Since then, I got a chance to work with the JBoss team to create archetypes to automate the entire procedure.

Please try this procedure instead: http://www.seamframework.org/Documentation/WeldQuickstartForMavenUsers

I&#039;ll update that post to reflect the fact that nearly the entire tutorial has been reduced to a few command lines.  The JBoss team is actively working with the community to make adopting Java EE features as easy as possible with projects like the archetype project.

Thanks,
Steven</description>
		<content:encoded><![CDATA[<p>Hello Ashley,<br />
I apologize, but much as changed since that post was written. When that post was written, there were no weld archetypes.  Since then, I got a chance to work with the JBoss team to create archetypes to automate the entire procedure.</p>
<p>Please try this procedure instead: <a href="http://www.seamframework.org/Documentation/WeldQuickstartForMavenUsers" rel="nofollow">http://www.seamframework.org/Documentation/WeldQuickstartForMavenUsers</a></p>
<p>I&#8217;ll update that post to reflect the fact that nearly the entire tutorial has been reduced to a few command lines.  The JBoss team is actively working with the community to make adopting Java EE features as easy as possible with projects like the archetype project.</p>
<p>Thanks,<br />
Steven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley Westwell</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-7246</link>
		<dc:creator>Ashley Westwell</dc:creator>
		<pubDate>Fri, 08 Jan 2010 12:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-7246</guid>
		<description>Type above 

javax.servlet
jstl
1.2
runtime

Should be 

javax.faces
jsf-impl
runtime
2.0.0-RC</description>
		<content:encoded><![CDATA[<p>Type above </p>
<p>javax.servlet<br />
jstl<br />
1.2<br />
runtime</p>
<p>Should be </p>
<p>javax.faces<br />
jsf-impl<br />
runtime<br />
2.0.0-RC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley Westwell</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-7245</link>
		<dc:creator>Ashley Westwell</dc:creator>
		<pubDate>Fri, 08 Jan 2010 12:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-7245</guid>
		<description>Hey

I tried your example and it works fine, thanks for the quick start. However if I try to update the JSF 2 dependencies to latest version the injection stops working!

Here is what I changed the JSF dependancies to in the pom.xml


From


   javax.faces
   jsf-impl
   runtime
   2.0.0-RC



   javax.servlet
   jstl
   1.2
   runtime


To


   javax.faces
   jsf-api
   2.0.2-FCS



   javax.faces
   jsf-impl
   runtime
   2.0.2-FCS
</description>
		<content:encoded><![CDATA[<p>Hey</p>
<p>I tried your example and it works fine, thanks for the quick start. However if I try to update the JSF 2 dependencies to latest version the injection stops working!</p>
<p>Here is what I changed the JSF dependancies to in the pom.xml</p>
<p>From</p>
<p>   javax.faces<br />
   jsf-impl<br />
   runtime<br />
   2.0.0-RC</p>
<p>   javax.servlet<br />
   jstl<br />
   1.2<br />
   runtime</p>
<p>To</p>
<p>   javax.faces<br />
   jsf-api<br />
   2.0.2-FCS</p>
<p>   javax.faces<br />
   jsf-impl<br />
   runtime<br />
   2.0.2-FCS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-4841</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sun, 06 Dec 2009 17:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-4841</guid>
		<description>As Murat Can ALPAY, I get nothing. But I noticed the following in the log output:
Dec 6, 2009 5:55:56 PM org.jboss.weld.environment.servlet.Listener contextInitialized
INFO: JSR-299 injection will not be available in Servlets, Filters etc. This facility is only available in Tomcat
Dec 6, 2009 5:55:56 PM org.jboss.interceptor.model.InterceptionTypeRegistry 

Creating the war file and deploying to Tomcat works fine though.

Regards,</description>
		<content:encoded><![CDATA[<p>As Murat Can ALPAY, I get nothing. But I noticed the following in the log output:<br />
Dec 6, 2009 5:55:56 PM org.jboss.weld.environment.servlet.Listener contextInitialized<br />
INFO: JSR-299 injection will not be available in Servlets, Filters etc. This facility is only available in Tomcat<br />
Dec 6, 2009 5:55:56 PM org.jboss.interceptor.model.InterceptionTypeRegistry </p>
<p>Creating the war file and deploying to Tomcat works fine though.</p>
<p>Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Boscarine</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-4188</link>
		<dc:creator>Steven Boscarine</dc:creator>
		<pubDate>Mon, 23 Nov 2009 15:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-4188</guid>
		<description>Hello Tai,
You are correct.  Those commands are for *NIX.  You can install cygwin if you really want to run them, however, there&#039;s an easier way to accomplish the same goals.  

Touch in *NIX simply creates an empty file.  I added that command to reduce the chances of someone forgetting to create a file or putting it in the wrong directory.  For example one user had issues because he forgot to create the empty beans.xml file.  The touch command is designed to avoid that.

Simply create the folders and files in the Overview section in Windows explorer or eclipse and move on to writing the actual code.  

If you want to work on your Maven skills and skip the manual steps, there&#039;s an even easier way.  I&#039;ve been working with the kind folks at JBoss to create maven archetype that creates all the files you need to get started.  

The instructions are here:  http://www.seamframework.org/Documentation/WeldQuickstartForMavenUsers  Once these archetypes get published to the maven repo (hopefully soon), this entire tutorial becomes 2 maven commands.  For now, you have to check out the code and build it.  

Finally, I included my original source in the &quot;Download the Code&quot; section if you want to just have a working project to play with.

Thanks for commenting and checking out Weld.  

In the last month, I have been working with the Weld team to try to make CDI and Weld as accessible and easy to use as possible to new users.  Hopefully, in a month or 2, users in your situation will find it CDI and JSF 2.0 incredibly easy to get started with.  

Thanks,
Steven</description>
		<content:encoded><![CDATA[<p>Hello Tai,<br />
You are correct.  Those commands are for *NIX.  You can install cygwin if you really want to run them, however, there&#8217;s an easier way to accomplish the same goals.  </p>
<p>Touch in *NIX simply creates an empty file.  I added that command to reduce the chances of someone forgetting to create a file or putting it in the wrong directory.  For example one user had issues because he forgot to create the empty beans.xml file.  The touch command is designed to avoid that.</p>
<p>Simply create the folders and files in the Overview section in Windows explorer or eclipse and move on to writing the actual code.  </p>
<p>If you want to work on your Maven skills and skip the manual steps, there&#8217;s an even easier way.  I&#8217;ve been working with the kind folks at JBoss to create maven archetype that creates all the files you need to get started.  </p>
<p>The instructions are here:  <a href="http://www.seamframework.org/Documentation/WeldQuickstartForMavenUsers" rel="nofollow">http://www.seamframework.org/Documentation/WeldQuickstartForMavenUsers</a>  Once these archetypes get published to the maven repo (hopefully soon), this entire tutorial becomes 2 maven commands.  For now, you have to check out the code and build it.  </p>
<p>Finally, I included my original source in the &#8220;Download the Code&#8221; section if you want to just have a working project to play with.</p>
<p>Thanks for commenting and checking out Weld.  </p>
<p>In the last month, I have been working with the Weld team to try to make CDI and Weld as accessible and easy to use as possible to new users.  Hopefully, in a month or 2, users in your situation will find it CDI and JSF 2.0 incredibly easy to get started with.  </p>
<p>Thanks,<br />
Steven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tai</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-4185</link>
		<dc:creator>Tai</dc:creator>
		<pubDate>Mon, 23 Nov 2009 06:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-4185</guid>
		<description>Hi,

I have a problem with setting up this example under Windows. I am not familiar with Maven but I get stuck with the command:
touch pom.xml src/main/webapp/WEB-INF/web.xml src/main/webapp/WEB-INF/beans.xml src/main/java/org/bogus/HelloWorld.java src/main/webapp/index.xhtml src/test/resources/jetty-env.xml

The touch command and I figured out that it is part of a mvn plugin.  I have also tried calling &quot;mvn touch ...&quot; but I only get this a &quot;BUILD FAILURE&quot; with:
Invalid task &#039;touch&#039;: you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal

Can anybody Help?

Thanks in advance,
Tai
P.S.: using mkdir under windows you have to replace &quot;/&quot; with &quot;\&quot;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a problem with setting up this example under Windows. I am not familiar with Maven but I get stuck with the command:<br />
touch pom.xml src/main/webapp/WEB-INF/web.xml src/main/webapp/WEB-INF/beans.xml src/main/java/org/bogus/HelloWorld.java src/main/webapp/index.xhtml src/test/resources/jetty-env.xml</p>
<p>The touch command and I figured out that it is part of a mvn plugin.  I have also tried calling &#8220;mvn touch &#8230;&#8221; but I only get this a &#8220;BUILD FAILURE&#8221; with:<br />
Invalid task &#8216;touch&#8217;: you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal</p>
<p>Can anybody Help?</p>
<p>Thanks in advance,<br />
Tai<br />
P.S.: using mkdir under windows you have to replace &#8220;/&#8221; with &#8220;\&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Gori</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-4177</link>
		<dc:creator>Alberto Gori</dc:creator>
		<pubDate>Sat, 21 Nov 2009 11:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-4177</guid>
		<description>You can run the example using command

mvn clean package jetty:run-war

just putting the jetty-evn.xml file into the webapp/WEB-INF folder.</description>
		<content:encoded><![CDATA[<p>You can run the example using command</p>
<p>mvn clean package jetty:run-war</p>
<p>just putting the jetty-evn.xml file into the webapp/WEB-INF folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Boscarine</title>
		<link>http://info.rmatics.org/2009/10/17/jsf2_tutorial_0/comment-page-1/#comment-4147</link>
		<dc:creator>Steven Boscarine</dc:creator>
		<pubDate>Wed, 18 Nov 2009 15:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://info.rmatics.org/?p=390#comment-4147</guid>
		<description>Hello Gene.  
Thank you for responding and I appreciate your pushback.  

However, your statement is only correct in existing applications spring-enabled applications where your package has been previously registered.  Also, Spring doesn&#039;t really handle scoping.  Spring IOC handles singleton and non-singleton (the equivalent of @Request).  You have to use WebFlow to get Conversation or Session scoping.  

As far as JBoss propaganda or being misinformed.  I am actually a Spring 2.5 user migrating towards CDI.  Weld is just an implementation of JSR 299, part of JEE 6.  I&#039;m not sure of the reason why, but Spring didn&#039;t feel like contributing to the JSR, so it is led by Gavin King of JBoss.  You could easily use the Apache implementation of CDI (OpenWebBeans) if you had issues with JBoss.

The difference between CDI and Spring 2.5 is that by adding an empty beans.xml file, you&#039;re ready to start using CDI.  To write the same tutorial in Spring, I would have to:

1.  Create a Spring config.
2.  Register EACH package in the config.
3.  Modify your web.xml to initialize the Spring listener.  
4.  Modify your face-config.  

In the end, you still couldn&#039;t declare a bean as @ConversationScoped through Spring.  

CDI is not a revolutionary improvement over Spring IOC so much as it&#039;s an evolutionary improvement.  I personally still like Spring and would not be so enamored with CDI if Spring had decent, first-class integration with JSF.  SpringSource added JSF integration as a afterthought with WebFlow and it is very cumbersome to use for anything other than long multi-page flows.  

If you use JSF, CDI is a huge improvement over Spring.  If you don&#039;t, then it&#039;ll do a few things slightly better, but probably isn&#039;t worth gutting your entire infrastructure out for if you&#039;re already invested in a non-JSF-webframework.  

The specifications and implementation of the various components of JEE6 are just now getting finalized.  They have excellent APIs and potential.  Once greater integration and testing documentation is out in the wild, I think you&#039;ll find JEE6 to be a compelling alternative to whatever you&#039;re using now.  


Thanks again for reading and responding,
Steven</description>
		<content:encoded><![CDATA[<p>Hello Gene.<br />
Thank you for responding and I appreciate your pushback.  </p>
<p>However, your statement is only correct in existing applications spring-enabled applications where your package has been previously registered.  Also, Spring doesn&#8217;t really handle scoping.  Spring IOC handles singleton and non-singleton (the equivalent of @Request).  You have to use WebFlow to get Conversation or Session scoping.  </p>
<p>As far as JBoss propaganda or being misinformed.  I am actually a Spring 2.5 user migrating towards CDI.  Weld is just an implementation of JSR 299, part of JEE 6.  I&#8217;m not sure of the reason why, but Spring didn&#8217;t feel like contributing to the JSR, so it is led by Gavin King of JBoss.  You could easily use the Apache implementation of CDI (OpenWebBeans) if you had issues with JBoss.</p>
<p>The difference between CDI and Spring 2.5 is that by adding an empty beans.xml file, you&#8217;re ready to start using CDI.  To write the same tutorial in Spring, I would have to:</p>
<p>1.  Create a Spring config.<br />
2.  Register EACH package in the config.<br />
3.  Modify your web.xml to initialize the Spring listener.<br />
4.  Modify your face-config.  </p>
<p>In the end, you still couldn&#8217;t declare a bean as @ConversationScoped through Spring.  </p>
<p>CDI is not a revolutionary improvement over Spring IOC so much as it&#8217;s an evolutionary improvement.  I personally still like Spring and would not be so enamored with CDI if Spring had decent, first-class integration with JSF.  SpringSource added JSF integration as a afterthought with WebFlow and it is very cumbersome to use for anything other than long multi-page flows.  </p>
<p>If you use JSF, CDI is a huge improvement over Spring.  If you don&#8217;t, then it&#8217;ll do a few things slightly better, but probably isn&#8217;t worth gutting your entire infrastructure out for if you&#8217;re already invested in a non-JSF-webframework.  </p>
<p>The specifications and implementation of the various components of JEE6 are just now getting finalized.  They have excellent APIs and potential.  Once greater integration and testing documentation is out in the wild, I think you&#8217;ll find JEE6 to be a compelling alternative to whatever you&#8217;re using now.  </p>
<p>Thanks again for reading and responding,<br />
Steven</p>
]]></content:encoded>
	</item>
</channel>
</rss>
