You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@portals.apache.org by wo...@apache.org on 2010/04/19 13:08:01 UTC

svn commit: r935525 - in /portals/site/bridges/src/site: site.xml xdoc/applications/ xdoc/bridges-frameworks/index.xml xdoc/bridges-jsf/myfaces-demo.xml xdoc/index.xml

Author: woonsan
Date: Mon Apr 19 11:08:01 2010
New Revision: 935525

URL: http://svn.apache.org/viewvc?rev=935525&view=rev
Log:
JS2-1187: Merging jsf-demo app doc into jsf-bridges docs and removing applications

Added:
    portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml   (with props)
Removed:
    portals/site/bridges/src/site/xdoc/applications/
Modified:
    portals/site/bridges/src/site/site.xml
    portals/site/bridges/src/site/xdoc/bridges-frameworks/index.xml
    portals/site/bridges/src/site/xdoc/index.xml

Modified: portals/site/bridges/src/site/site.xml
URL: http://svn.apache.org/viewvc/portals/site/bridges/src/site/site.xml?rev=935525&r1=935524&r2=935525&view=diff
==============================================================================
--- portals/site/bridges/src/site/site.xml (original)
+++ portals/site/bridges/src/site/site.xml Mon Apr 19 11:08:01 2010
@@ -47,24 +47,29 @@
     </menu>
     <menu name="Current Portals Bridges">
       <item name="Common Utilities and Interfaces" href="bridges-common/index.html"/>
-      <item name="Groovy Bridge" href="bridges-groovy/index.html"/>
-      <item name="Struts Bridge" href="bridges-struts/index.html"/>
+      <item name="Groovy Bridge" href="bridges-groovy/index.html" collapse="true">
+        <item name="Groovy PreferencesValidator Guide" href="bridges-groovy/prefvalidate.html" />
+        <item name="Jetspeed HeaderPhase Support Guide" href="bridges-groovy/headersupport.html" />
+      </item>
+      <item name="Struts Bridge" href="bridges-struts/index.html" collapse="true">
+        <item name="Features" href="bridges-struts/features.html"/>
+      </item>
       <item name="Velocity Bridge" href="bridges-velocity/index.html"/>
     </menu>
     <menu name="Archived Portals Bridges">
-      <item name="JSF Bridge" href="bridges-jsf/index.html"/>
-      <item name="PHP Bridge" href="bridges-php/index.html"/>
+      <item name="JSF Bridge" href="bridges-jsf/index.html" collapse="true">
+        <item name="Guide" href="bridges-jsf/guide.html"/>
+        <item name="MyFaces Demo" href="bridges-jsf/myfaces-demo.html"/>
+      </item>
+      <item name="PHP Bridge" href="bridges-php/index.html" collapse="true">
+        <item name="Getting Started" href="bridges-php/getting-started.html"/>
+        <item name="PHP Demo Application" href="bridges-php/demo.html"/>
+        <item name="Configuring Portlets" href="bridges-php/portlets.html"/>
+      </item>
       <item name="Perl Bridge" href="bridges-perl/index.html"/>
       <item name="Portlet Filter" href="bridges-portletfilter/index.html"/>
       <item name="Frameworks" href="bridges-frameworks/index.html"/>
     </menu>
-    <menu name="Example Applications">
-      <item name="JSF Portlet Demo" href="applications/jsf-demo/index.html"/>
-      <item name="iBATIS JPetstore Portlet Demo" href="applications/jpetstore/index.html"/>
-      <item name="PHP Portlet" href="applications/php/index.html"/>
-      <item name="Perl Portlet" href="applications/perl/index.html"/>
-      <item name="Andromda Struts Portlet Demo" href="applications/andromda-struts/index.html"/>
-    </menu>
     <menu name="Get Portals Bridges">
       <item name="Download" href="download.html"/>
       <item name="Release Notes" href="release-notes.html"/>

Modified: portals/site/bridges/src/site/xdoc/bridges-frameworks/index.xml
URL: http://svn.apache.org/viewvc/portals/site/bridges/src/site/xdoc/bridges-frameworks/index.xml?rev=935525&r1=935524&r2=935525&view=diff
==============================================================================
--- portals/site/bridges/src/site/xdoc/bridges-frameworks/index.xml (original)
+++ portals/site/bridges/src/site/xdoc/bridges-frameworks/index.xml Mon Apr 19 11:08:01 2010
@@ -21,7 +21,7 @@ limitations under the License.
   </properties>
   <body>
     <section name="About Apache Portals Bridges Frameworks">
-      <p>TBD</p>
+      <p>Apache Portals Bridges Frameworks</p>
     </section>
   </body>
 </document>

Added: portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml
URL: http://svn.apache.org/viewvc/portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml?rev=935525&view=auto
==============================================================================
--- portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml (added)
+++ portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml Mon Apr 19 11:08:01 2010
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<document>
+  <properties>
+    <title>Jetspeed MyFaces Demo Portlet Configuration</title>
+    <subtitle>MyFaces Demo Portlet Configuration - Jetspeed 2 JSF Bridge</subtitle>
+    <authors>
+      <person name="David Le Strat" email="dlestrat@apache.org"/>
+    </authors>
+  </properties>
+  <body>
+<section name="Introduction">
+<p>
+Jetspeed MyFaces Demo Portlet leverages Sun's Guess Number reference implementation sample application to
+illustrate how a MyFaces based portlet using Jetspeed 2 JSF bridge should be configured.
+</p>
+<p>
+Jetspeed 2 provides a JSF bridge implementation to support JSF with the Portlet Specifications.  This section describes
+the necessary configuration required in order to use Jetspeed 2 JSF bridge.
+</p>
+</section>
+<section name="Configuration MyFaces as a Portlet">
+<p>
+The modifications required in order to deploy a MyFaces application as a portlet need to be made to the
+<i>portlet.xml</i> file. An <i>&lt;init-param&gt;</i> should be added to the <i>portlet.xml</i> as described below:
+<source><![CDATA[
+<init-param>
+    <name>ViewPage</name>
+    <value>/greeting.jsp</value>
+</init-param>]]>
+</source>
+</p>
+<p>
+The parameter <i>ViewPage</i> indicates to the <i>org.apache.portals.bridges.jsf.FacesPortlet</i> which view
+should be used as a default view.
+</p>
+<p>
+Additionally, the &lt;portlet-class&gt; element should specify the MyFaces generic portlet implementation as described
+below:
+<source>
+<![CDATA[<portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>]]>
+</source>
+</p>
+<p>
+This final <i>portlet.xml</i> should look like:
+<source><![CDATA[
+<portlet id="guessNumber">
+        <init-param>
+            <name>ViewPage</name>
+            <value>/greeting.jsp</value>
+        </init-param>
+        <description>JSF GuessNumber Portlet - Using J2 JSF Bridge</description>
+        <portlet-name>guessNumber</portlet-name>
+        <display-name>JSF GuessNumber Portlet - J2 JSF Bridge</display-name>
+        <portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>
+
+        <supports>
+            <mime-type>text/html</mime-type>
+            <portlet-mode>VIEW</portlet-mode>
+            <portlet-mode>EDIT</portlet-mode>
+            <portlet-mode>HELP</portlet-mode>
+        </supports>
+
+        <portlet-info>
+            <title>GuessNumber Portlet</title>
+            <short-title>guessNumber</short-title>
+        </portlet-info>
+</portlet>]]>
+</source>
+</p>
+</section>
+
+</body>
+</document>
+

Propchange: portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/site/bridges/src/site/xdoc/bridges-jsf/myfaces-demo.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: portals/site/bridges/src/site/xdoc/index.xml
URL: http://svn.apache.org/viewvc/portals/site/bridges/src/site/xdoc/index.xml?rev=935525&r1=935524&r2=935525&view=diff
==============================================================================
--- portals/site/bridges/src/site/xdoc/index.xml (original)
+++ portals/site/bridges/src/site/xdoc/index.xml Mon Apr 19 11:08:01 2010
@@ -116,13 +116,13 @@ limitations under the License.
       <subsection name="Velocity">
       <p>
       Although JavaServer Pages (JSP) are very much promoted for Portlet View rendering, other technologies can be
-      used just as easily. The <a href="multiproject/portals-bridges-velocity/index.html">Portals Velocity Bridge</a> provides several ready to use Velocity based
+      used just as easily. The <a href="bridges-velocity/index.html">Portals Velocity Bridge</a> provides several ready to use Velocity based
       Portlets, together with a library of useful scripts. 
       </p>
       </subsection>
       <subsection name="Groovy">
       <p>
-        The <a href="multiproject/portals-bridges-groovy/index.html">Groovy Portlet Bridge</a> allows using groovy scripting for rapid portlet development.
+        The <a href="bridges-groovy/index.html">Groovy Portlet Bridge</a> allows using groovy scripting for rapid portlet development.
         A groovy script portlet can be implemented like Java-based portlets, and so developers can use any techniques used in Java.
         For example, a groovy script portlet can extend org.apache.portals.bridges.common.GenericServletPortlet to simplify implementation.
         Therefore, GroovyPortlet is very simple, but it will be very useful for developers.
@@ -130,11 +130,11 @@ limitations under the License.
       </subsection>
       <subsection name="Perl">
       <p>
-      Perl based web applications can be accessed as a Portlet using the <a href="multiproject/portals-bridges-perl/index.html">Portals Perl Bridge</a>.
+      Perl based web applications can be accessed as a Portlet using the <a href="bridges-perl/index.html">Portals Perl Bridge</a>.
       </p>
       <subsection name="Common Utilities and Interfaces">
       <p>
-      The <a href="multiproject/portals-bridges-common/index.html">Portals Bridges Common</a> library provides, besides
+      The <a href="bridges-common/index.html">Portals Bridges Common</a> library provides, besides
       the already mentioned ServletContextProvider interface, several additional utilities like a GenericServletPortlet
       which you can use for simple JSP based Portlets (or any invokable view Render technology). Or use it as base
       class for your own Bridge.
@@ -146,31 +146,13 @@ limitations under the License.
       </subsection>
       <subsection name="PortletFilter">
       <p>
-        The <a href="multiproject/portals-bridges-portletfilter/index.html">Portlet Filter</a> provides a FilterPortlet which
+        The <a href="bridges-portletfilter/index.html">Portlet Filter</a> provides a FilterPortlet which
         enables you to add processes to run before and after accessing the target portlet.
         The feature provided by FilterPortlet is like a Servlet Filter. (Portlet Filter may be included in
         the future Portlet Spec, but currently it's not included yet.) 
       </p>
   </subsection>
-  <subsection name="Examples">
-      <p>
-      Several examples using the bridges are available:
-      <ul>
-        <li>The <a href="multiproject/jsf-demo/index.html">JSF Portlet Demo</a> application using the JSF Portlet Bridge</li>
-        <li>The <a href="multiproject/jpetstore/index.html">iBATIS JPetstore Demo Portlet</a> application using the Struts Portlet Bridge</li>
-        <li>The <a href="multiproject/php/index.html">PHP Portlet</a> application</li>
-        <li>The <a href="multiproject/perl/index.html">Perl Portlet</a> application</li>
-        <li>The <a href="multiproject/portals-bridges-andromda-struts/index.html">Andromda Struts demo portlet</a> application created using the Andromda BPM4Struts cartridge</li>
-      </ul>
-      </p>
-      <p>
-      Furhermore, Jetspeed 2 makes full use of bridges. For example have a look at:
-      <ul>
-        <li>The <a href="http://portals.apache.org/jetspeed-2/multiproject/j2-admin" target="_nw">Jetspeed-2 Administration</a> using the Velocity Bridge</li>
-      </ul>
-      </p>
-      </subsection>
 </section>
->
+
   </body>
 </document>