Author: steveh
Date: Mon Apr 25 11:07:36 2005
New Revision: 164612

URL: http://svn.apache.org/viewcvs?rev=164612&view=rev
Log:
Adding topic on jsf-enabling a webapp.

Added:
    
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/jsf.xml
   (with props)
Modified:
    
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/site.xml

Added: 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/jsf.xml
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/jsf.xml?rev=164612&view=auto
==============================================================================
--- 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/jsf.xml
 (added)
+++ 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/jsf.xml
 Mon Apr 25 11:07:36 2005
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" 
"http://forrest.apache.org/dtd/document-v20.dtd";>
+<document>
+       <header>
+               <title>Java Server Faces</title>
+       </header>
+       <body>
+        <section><title>Enabling Java Server Faces</title>
+<p>To enable Java Server Faces in a Beehive web application, complete the 
following steps:</p>
+ <section><title>Integrate JSF Tags in Your Web App</title>
+       <p>Integrate JSF into your webapp.  You can use either <a 
href="http://www.marinschek.com/myfaces/tiki/tiki-index.php?page=GettingStarted";><code>MyFaces</code></a>
 or 
+the <a href="http://java.sun.com/j2ee/javaserverfaces/download.html";>JSF 
Reference Implementation</a>.</p>
+
+<p>JSF pages and backing classes can</p> 
+<ul><li>raise Page Flow actions (with or 
+without attached form beans)</li>
+       <li>databind to Page Flow objects using expressions like 
+"#{pageFlow.foo}"</li>
+</ul>
+<p>Also note that the component tree is preserved when you return to a 
+JSF page through <code>[EMAIL PROTECTED]</code>.
+       </p>
+</section>
+<section><title>Configure Your Web Application</title>
+    <p>Add the following snippet to your <code>WEB-INF/faces-config.xml</code> 
file:</p>
+
+
+      <source>&lt;factory>
+  &lt;application-factory>
+    org.apache.beehive.netui.pageflow.faces.PageFlowApplicationFactory
+  &lt;/application-factory>
+&lt;/factory></source>
+
+
+         <p>This goes underneath the <code>&lt;application></code> element and 
before the 
+<code>&lt;navigation-rule></code> element(s).</p>
+
+</section>
+                       </section>
+       </body>
+       <footer>
+               <legal>Java, J2EE, and JCP are trademarks or registered 
trademarks of Sun Microsystems, Inc. in the United States and other 
countries.<br/>
+       &copy; 2004, Apache Software Foundation
+       </legal>
+       </footer>
+</document>

Propchange: 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/jsf.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/site.xml
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/site.xml?rev=164612&r1=164611&r2=164612&view=diff
==============================================================================
--- 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/site.xml 
(original)
+++ 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/site.xml 
Mon Apr 25 11:07:36 2005
@@ -30,6 +30,7 @@
             <pageflow_sharedFlow label="Shared Flow" 
href="pageflow/sharedFlow.html"/>
             <pageflow_popups label="Popup Windows" 
href="pageflow/popupWindows.html"/>
             <pageflow_valid label="Validation" 
href="pageflow/validation.html"/>
+            <pageflow_valid label="Java Server Faces" 
href="pageflow/jsf.html"/>
             <pageflow_servlet_adapter label="Servlet Container Adapters" 
href="pageflow/servlet_container_adapters.html"/>
             <devmode label="Development Mode" 
href="development/dev_mode.html"/>
             <!--<pageflow_programming label="Page Flow Programming" 
href="pageflow/guide.html"/>-->


Reply via email to