You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/09/17 09:01:41 UTC

svn commit: r1523935 - /myfaces/site/publish/tobago/faq.html

Author: lofwyr
Date: Tue Sep 17 07:01:40 2013
New Revision: 1523935

URL: http://svn.apache.org/r1523935
Log:
jsf 2.0 face
wlp: server.xml and config

Modified:
    myfaces/site/publish/tobago/faq.html

Modified: myfaces/site/publish/tobago/faq.html
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/faq.html?rev=1523935&r1=1523934&r2=1523935&view=diff
==============================================================================
--- myfaces/site/publish/tobago/faq.html (original)
+++ myfaces/site/publish/tobago/faq.html Tue Sep 17 07:01:40 2013
@@ -29,7 +29,7 @@
   
   
   <div class="date">
-    Last Published: 28 May 2013
+    Last Published: 17 Sep 2013
   </div>
             <ul>
       <li>
@@ -219,8 +219,6 @@
       
             
       
-            
-      
               
         <li class="collapsed">
                     <a href="project-info.html">Project Information</a>
@@ -243,16 +241,6 @@
       
             
       
-            
-      
-            
-      
-            
-      
-            
-      
-            
-      
               
         <li class="collapsed">
                     <a href="project-reports.html">Project Reports</a>
@@ -346,6 +334,15 @@
         <p>Tobago runs with Sun RI and with MyFaces.
         Please take a look at the <a href="compatibility.html">Compatibility</a> List.</p>
       <p align="right"><a href="#top">[top]</a></p><hr /></dd><dt><a name="tobagofacelets">Does Tobago supports Facelets?</a></dt><dd>
+        <p>Tobago 2.0.x:</p>
+        <p>Tobago supports the JSF 2.0 Facelets.
+          Note: Please add following context param in your web.xml</p>
+        <div class="source"><pre>
+&lt;context-param&gt;
+  &lt;param-name&gt;javax.faces.FACELETS_SKIP_COMMENTS&lt;/param-name&gt;
+  &lt;param-value&gt;true&lt;/param-value&gt;
+&lt;/context-param&gt;</pre></div>
+        <p>Tobago 1.0.x and 1.5.x:</p>
         <p>Tobago supports Facelets with the tobago-facelets.jar.
         Note: Please add following context param in your web.xml</p>
         <div class="source"><pre>
@@ -558,8 +555,19 @@ java -jar ~/Downloads/wlp-developers-run
        </ul>
         <p>
           After these steps you can start/stop the server and deploy an built artifact.
-          For these steps, you need to be in a Tobago example directory.
+          For these steps, you need to be in the Tobago example demo directory.
           </p><div class="source"><pre>cd tobago-examples/tobago-example-demo</pre></div>
+          This is <b>important</b> for the first start of the server,
+          because at the first start the server will be initialized.
+          For the setup the file
+          <div class="source"><pre>test/resources/server.xml</pre></div>
+          will be read. It contains the features, the WLP server will be support, and other configurations.
+          In our case we have the following features:
+          <div class="source"><pre>
+            &lt;feature&gt;cdi-1.0&lt;/feature&gt;
+            &lt;feature&gt;jsp-2.2&lt;/feature&gt;
+            &lt;feature&gt;servlet-3.0&lt;/feature&gt;
+            &lt;feature&gt;jsf-2.0&lt;/feature&gt;</pre></div>
        
         <ul>
           <li>
@@ -602,12 +610,16 @@ java -jar ~/Downloads/wlp-developers-run
             <div class="source"><pre>rm -r /opt/wlp-developers-8.5.next.beta/wlp/usr/servers/tobago</pre></div>
          </li>
           <li>
-            Start the server
+            Start the server (don't forget the server.xml)
          </li>
           <li>
             Deploy again
          </li>
        </ul>
+        Please also consider the plugin configuration in the tobago-example/pom.xml
+        <div class="source"><pre>
+          &lt;groupId&gt;com.ibm.websphere.wlp.maven.plugins&lt;/groupId&gt;
+          &lt;artifactId&gt;liberty-maven-plugin&lt;/artifactId&gt;</pre></div>
       <p align="right"><a href="#top">[top]</a></p></dd></dl>
       </div>
     </div>