[jboss-cvs] JBossAS SVN: r95737 - projects/docs/enterprise/5.0/RichFaces/en-US.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Oct 29 05:22:03 EDT 2009


Author: laubai
Date: 2009-10-29 05:22:03 -0400 (Thu, 29 Oct 2009)
New Revision: 95737

Modified:
   projects/docs/enterprise/5.0/RichFaces/en-US/Getting_Started.xml
Log:
Added changes as mentioned in JBPAPP-2980.

Modified: projects/docs/enterprise/5.0/RichFaces/en-US/Getting_Started.xml
===================================================================
--- projects/docs/enterprise/5.0/RichFaces/en-US/Getting_Started.xml	2009-10-29 09:20:49 UTC (rev 95736)
+++ projects/docs/enterprise/5.0/RichFaces/en-US/Getting_Started.xml	2009-10-29 09:22:03 UTC (rev 95737)
@@ -229,225 +229,8 @@
                     </section>
           </section>
           
-          <!--<section>
-                    <title>Integration of RichFaces into Maven Project</title>
-                    <para>This section tells you how to create a simple JSF with RichFaces application using Maven.</para>
-                    <para>First, ensure that Maven is installed on your local machine. This JSF application will run on the Apache Tomcat 6.0 server &#8212; download and install this if you have not done so already.</para>                    
-                    <para>To create the project structure and populate it with basic content, we use the <literal>maven-archetype-jsfwebapp</literal> Maven archetype, which is a part of the RichFaces CDK.</para>
-                    <para>The <literal>maven-archetype-jsfwebapp</literal> archetype and the project itself require extra repositories: <literal>http://snapshots.jboss.org/maven2/</literal> and <literal>http://repository.jboss.com/maven2/</literal>. The easist way to make these repositories visible to Maven is to create a profile in <filename>maven_installation_folder/conf/settings.xml</filename>. Add the following beneath the <literal>&lt;profiles&gt;</literal> element:</para>
+ <!--MAVEN INTEGRATION HERE-->
           
-          <programlisting role="XML">&lt;profile&gt;
-	&lt;id&gt;jsf-app-profile&lt;/id&gt;
-	&lt;repositories&gt;
-		&lt;repository&gt;
-			&lt;releases&gt;
-				&lt;enabled&gt;true&lt;/enabled&gt;
-			&lt;/releases&gt;
-			&lt;snapshots&gt;
-				&lt;enabled&gt;true&lt;/enabled&gt;
-				&lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
-			&lt;/snapshots&gt;
-			&lt;id&gt;snapshots.jboss.org&lt;/id&gt;
-			&lt;name&gt;Snapshot Jboss Repository for Maven&lt;/name&gt;
-			&lt;url&gt;http://snapshots.jboss.org/maven2/&lt;/url&gt;
-			&lt;layout&gt;default&lt;/layout&gt;
-		&lt;/repository&gt;
-		&lt;repository&gt;
-			&lt;releases&gt;
-				&lt;enabled&gt;true&lt;/enabled&gt;
-			&lt;/releases&gt;
-			&lt;snapshots&gt;
-				&lt;enabled&gt;true&lt;/enabled&gt;
-				&lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
-			&lt;/snapshots&gt;
-			&lt;id&gt;repository.jboss.com&lt;/id&gt;
-			&lt;name&gt;Jboss Repository for Maven&lt;/name&gt;
-			&lt;url&gt;http://repository.jboss.com/maven2/&lt;/url&gt;
-			&lt;layout&gt;default&lt;/layout&gt;
-		&lt;/repository&gt;
-	&lt;/repositories&gt;
-&lt;/profile&gt;</programlisting> 
-                    <para>Once you have added the profile, you must also activate it. Add the following beneath the <literal>&lt;activeProfiles&gt;</literal> element.</para>
-                    
-                    <programlisting role="XML">...
-&lt;activeProfiles&gt;
-  &lt;activeProfile&gt;jsf-app-profile&lt;/activeProfile&gt;
-&lt;/activeProfiles&gt;</programlisting> 
-                    
-                    
-                    <para>This fulfills the requirements for creating a project using the <literal>maven-archetype-jsfwebapp</literal> archetype. Create a directory for your project and run the following command from within the directory:</para>
-          <programlisting role="XML" >...
-mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.1.GA -DgroupId=org.docs.richfaces -DartifactId=jsf-app</programlisting> 
-                  
-                  
-                  <para>You can adjust some parameters of the command.</para>
-                  <table>
-                            <title>Title of the table</title>   
-                            <tgroup cols="2">
-                                      <thead>
-                                                <row>
-                                                          <entry>Parameter</entry>
-                                                          
-                                                          <entry>Description</entry>
-                                                </row>
-                                      </thead>
-                                      <tbody>
-                                                <row>
-                                                          <entry>-DgroupId</entry>
-                                                          <entry>Defines the package for the Managed beans</entry>
-                                                </row>                                               
-                                                <row>
-                                                          <entry>-DartifactId</entry>
-                                                          <entry>Defines the name of the project</entry>
-                                                </row> 
-                                      </tbody>
-                            </tgroup>
-                  </table>
-                    
-                  
-                  
-                  <para>This command generates a JSF project that has the following structure:</para>
-          
-          <programlisting role="XML">
-jsf-app
-|-- pom.xml
-`-- src
-    |-- main
-    |   |-- java
-    |   |   `-- org
-    |   |       `-- docs
-    |   |           `-- richfaces
-    |   |               `-- Bean.java
-    |   |-- resources
-    |   `-- webapp
-    |       |-- WEB-INF
-    |       |   |-- faces-config.xml
-    |       |   `-- web.xml
-    |       |-- index.jsp
-    |       `-- pages
-    |           |-- index.jsp
-    |           `-- index.xhtml
-    `-- test
-        `-- java
-            `-- org
-                `-- docs
-                    `-- richfaces
-                        `-- BeanTest.java
-</programlisting> 
-          <para>
-	    Go to the <literal>jsf-app</literal> folder and open the project descriptor, <filename>pom.xml</filename> to edit and add dependencies. The <literal>&lt;dependencies&gt;</literal> element should contain at least the following:
-          </para>
-    
-    
-    
- <programlisting role="XML">...
-&lt;dependencies&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;junit&lt;/groupId&gt;
-		&lt;artifactId&gt;junit&lt;/artifactId&gt;
-		&lt;version&gt;3.8.1&lt;/version&gt;
-		&lt;scope&gt;test&lt;/scope&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;javax.servlet&lt;/groupId&gt;
-		&lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
-		&lt;version&gt;2.4&lt;/version&gt;
-		&lt;scope&gt;provided&lt;/scope&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;javax.servlet&lt;/groupId&gt;
-		&lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
-		&lt;version&gt;2.0&lt;/version&gt;
-		&lt;scope&gt;provided&lt;/scope&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;jstl&lt;/groupId&gt;
-		&lt;artifactId&gt;jstl&lt;/artifactId&gt;
-		&lt;version&gt;1.1.2&lt;/version&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
-		&lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
-		&lt;version&gt;2.1&lt;/version&gt;
-		&lt;scope&gt;provided&lt;/scope&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;javax.faces&lt;/groupId&gt;
-		&lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
-		&lt;version&gt;1.2_12&lt;/version&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;javax.faces&lt;/groupId&gt;
-		&lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;
-		&lt;version&gt;1.2_12&lt;/version&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;javax.el&lt;/groupId&gt;
-		&lt;artifactId&gt;el-api&lt;/artifactId&gt;
-		&lt;version&gt;1.0&lt;/version&gt;
-		&lt;scope&gt;provided&lt;/scope&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;el-impl&lt;/groupId&gt;
-		&lt;artifactId&gt;el-impl&lt;/artifactId&gt;
-		&lt;version&gt;1.0&lt;/version&gt;
-		&lt;scope&gt;provided&lt;/scope&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;javax.annotation&lt;/groupId&gt;
-		&lt;artifactId&gt;jsr250-api&lt;/artifactId&gt;
-		&lt;version&gt;1.0&lt;/version&gt;
-	&lt;/dependency&gt;
-	&lt;!-- RichFaces libraries --&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;org.richfaces.framework&lt;/groupId&gt;
-		&lt;artifactId&gt;richfaces-api&lt;/artifactId&gt;
-		&lt;version&gt;3.3.1.GA&lt;/version&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;org.richfaces.framework&lt;/groupId&gt;
-		&lt;artifactId&gt;richfaces-impl&lt;/artifactId&gt;
-		&lt;version&gt;3.3.1.GA&lt;/version&gt;
-	&lt;/dependency&gt;
-	&lt;dependency&gt;
-		&lt;groupId&gt;org.richfaces.ui&lt;/groupId&gt;
-		&lt;artifactId&gt;richfaces-ui&lt;/artifactId&gt;
-		&lt;version&gt;3.3.1.GA&lt;/version&gt;
-	&lt;/dependency&gt;
-&lt;/dependencies&gt;</programlisting>    
-             <para>The final three dependencies add RichFaces libraries to the project. You can now build the project by running the <code>mvn install</code> command.</para>
-             <para>When you see <literal>BUILD SUCCESSFUL</literal>, the project is assembled. It can now be imported to an IDE and run on the server.</para>          
-
-                    <para>You can build this project for the Eclipse IDE with the following command: <code>mvn eclipse:eclipse -Dwtpversion=2.0</code></para>
-                    
-                    <para>Once the project is built, you can import it into Eclipse. Then, open <filename>jsf-app/src/main/webapp/WEB-INF/web.xml</filename> to configure it according to the listing under <xref linkend="RegisteringRichFacesinwebxml" />.</para>                    
-                    <para>The project is now configured and now you can start using RichFaces. Open <filename>jsf-app/src/main/webapp/pages/index.jsp</filename> and add the following tag library declaration.</para>
-                    <programlisting role="XML">...
-&lt;%@ taglib uri="http://richfaces.org/rich" prefix="rich"%&gt;
-...</programlisting> 
-           
-           <para>If you add some RichFaces component to the <filename>index.jsp</filename> page (<literal>&lt;rich:calendar&gt;</literal>, for instance), your <filename>index.jsp</filename> page will look like this:</para>
-           
-           <programlisting role="XML">...
-&lt;%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %&gt;
-&lt;%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%&gt;
-&lt;%@ taglib uri="http://richfaces.org/rich" prefix="rich"%&gt;
-&lt;html&gt;
-	&lt;head&gt;
-		&lt;title&gt;JSF Application with RichFaces built by Maven&lt;/title&gt;
-	&lt;/head&gt;
-	&lt;body&gt;
-		&lt;f:view&gt;
-		&lt;rich:calendar /&gt;
-		&lt;/f:view&gt;
-	&lt;/body&gt;	
-&lt;/html&gt;  
-...</programlisting> 
-                    
-                    <para>You can now run the application on the Tomcat server and open it in your preferred browser by pointing the browser to <literal>http://localhost:8080/jsf-app/</literal>.</para>
-          </section>-->
-          
-          
 <!-- RELEVANT RESOURCES LINKS -->
       
       <section id="RelevantResourcesLinks">




More information about the jboss-cvs-commits mailing list