Modified: portals/site-live/bridges/bridges-groovy/prefvalidate.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-groovy/prefvalidate.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-groovy/prefvalidate.html (original)
+++ portals/site-live/bridges/bridges-groovy/prefvalidate.html Tue May 31 
02:19:06 2022
@@ -1,374 +1,325 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
-
-
-
-
-
-
-
-
-
-
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-  <head>
-    <title>Apache Portals Bridges - How to use Groovy 
PreferencesValidator</title>
-    <style type="text/css" media="all">
-      @import url("../css/maven-base.css");
-      @import url("../css/maven-theme.css");
-      @import url("../css/site.css");
-    </style>
-    <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
-        <meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1" />
-      </head>
-  <body class="composite">
-    <div id="banner">
-                  <a href="http://portals.apache.org/"; id="bannerLeft">
-    
-                                            <img 
src="../images/apache-portals.gif" alt="" />
-    
-            </a>
-                        <a href="http://portals.apache.org/bridges/"; 
id="bannerRight">
-    
-            Apache Portals Bridges
-    
-            </a>
-            <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="breadcrumbs">
-          
-  
-
-  
-    
-  
-  
-    
-            <div class="xleft">
-        Last Published: 29 September 2011
-                      </div>
-            <div class="xright">            <a 
href="http://portals.apache.org/"; class="externalLink">Portals</a>
-            |
-                <a href="http://portals.apache.org/applications"; 
class="externalLink">Applications</a>
-            |
-                <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink">Jetspeed-2</a>
-            |
-                <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink">JSR-168</a>
-            |
-                <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink">JSR-286</a>
-            
-  
-
-  
-    
-  
-  
-    
-  </div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="leftColumn">
-      <div id="navcolumn">
-           
-  
-
-  
-    
-  
-  
-    
-                   <h5>Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../index.html">Overview</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../news.html">News and Status</a>
-          </li>
-          </ul>
-              <h5>Current Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../bridges-common/index.html">Common Utilities 
and Interfaces</a>
-          </li>
-              
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <title>Apache Portals Bridges - 
+               How to use Groovy PreferencesValidator</title>
+    <style type="text/css" media="all">
+      @import url("../css/maven-base.css");
+      @import url("../css/maven-theme.css");
+      @import url("../css/site.css");
+    </style>
+    <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
+    <meta name="Date-Revision-yyyymmdd" content="20220526" />
+    <meta http-equiv="Content-Language" content="en" />
+        
+        </head>
+  <body class="composite">
+    <div id="banner">
+                        <a href="http://portals.apache.org/"; id="bannerLeft">
+                                                <img 
src="../images/apache-portals.gif" alt="Apache Software Foundation" />
+                </a>
+                              <a href="http://portals.apache.org/bridges/"; 
id="bannerRight">
+                Apache Portals Bridges
+                </a>
+            <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="breadcrumbs">
+            
+                    
+                <div class="xleft">
+        <span id="publishDate">Last Published: 26 May 2022</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0</span>
+                      </div>
+            <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
+            |
+                        <a href="http://portals.apache.org/applications"; 
class="externalLink" target="_nw" title="Applications">Applications</a>
+            |
+                        <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink" target="_nw" title="Jetspeed-2">Jetspeed-2</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink" target="_nw" title="JSR-168">JSR-168</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink" target="_nw" title="JSR-286">JSR-286</a>
+              
+                    
+      </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="leftColumn">
+      <div id="navcolumn">
+             
+                    
+                                <h5>Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../index.html" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+                          <a href="../news.html" title="News and Status">News 
and Status</a>
+            </li>
+          </ul>
+                       <h5>Current Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../bridges-common/index.html" title="Common 
Utilities and Interfaces">Common Utilities and Interfaces</a>
+            </li>
+                                                                    <li 
class="collapsed">
+                          <a href="../bridges-struts/index.html" title="Struts 
Bridge">Struts Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-velocity/index.html" 
title="Velocity Bridge">Velocity Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-script/index.html" title="Script 
Bridge">Script Bridge</a>
+            </li>
+                                                                               
                 <li class="expanded">
+                          <a href="../bridges-groovy/index.html" title="Groovy 
Bridge">Groovy Bridge</a>
+                    <ul>
+                      <li class="none">
+            <strong>Groovy PreferencesValidator Guide</strong>
+          </li>
+                      <li class="none">
+                          <a href="../bridges-groovy/headersupport.html" 
title="Jetspeed HeaderPhase Support Guide">Jetspeed HeaderPhase Support 
Guide</a>
+            </li>
+              </ul>
+        </li>
+          </ul>
+                       <h5>Archived Portals Bridges</h5>
+                  <ul>
+                                                                               
       <li class="collapsed">
+                          <a href="../bridges-jsf/index.html" title="JSF 
Bridge">JSF Bridge</a>
+                  </li>
+                                                                               
                         <li class="collapsed">
+                          <a href="../bridges-php/index.html" title="PHP 
Bridge">PHP Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-perl/index.html" title="Perl 
Bridge">Perl Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-portletfilter/index.html" 
title="Portlet Filter">Portlet Filter</a>
+            </li>
+          </ul>
+                       <h5>Get Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../download.html" 
title="Download">Download</a>
+            </li>
+                  <li class="none">
+                          <a href="../release-notes.html" title="Release 
Notes">Release Notes</a>
+            </li>
+          </ul>
+                       <h5>Support</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../team-list.html" title="Project 
Team">Project Team</a>
+            </li>
+                  <li class="none">
+                          <a href="../license.html" title="Project 
License">Project License</a>
+            </li>
+                  <li class="none">
+                          <a href="../mail-lists.html" title="Mailing 
List">Mailing List</a>
+            </li>
+                  <li class="none">
+                          <a href="../issue-tracking.html" title="Issue 
Tracking">Issue Tracking</a>
+            </li>
+          </ul>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="poweredBy" alt="Built by Maven" 
src="../images/logos/maven-feather.png" />
+      </a>
+                   
+                    
+            </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        <!-- 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. -->
+       
+               <div class="section">
+<h2>Jetspeed Groovy PreferencesValidator Guide<a 
name="Jetspeed_Groovy_PreferencesValidator_Guide"></a></h2>
+                       
+<p>
+                               This guide provides a tutorial for creating a 
Groovy Preferences Validator.
+                       </p>
+                       
+<div class="section">
+<h3>1. The Groovy PreferencesValidator Class<a 
name="a1._The_Groovy_PreferencesValidator_Class"></a></h3>
                 
-              
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-struts/index.html">Struts Bridge</a>
-                </li>
-              
-    <li class="none">
-                    <a href="../bridges-velocity/index.html">Velocity 
Bridge</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../bridges-script/index.html">Script Bridge</a>
-          </li>
-              
+<p>Create the file HelloGroovyValidator.groovy in a directory called 
groovy-simplest/WEB-INF/classes:
+                </p>
+<div class="source">
+<pre>
+import javax.portlet.PortletPreferences;
+import javax.portlet.PreferencesValidator;
+import javax.portlet.ValidatorException;
+
+public class HelloGroovyValidator implements PreferencesValidator
+{
+    public void validate(PortletPreferences preferences)
+    {
+        String message = preferences.getValue(&quot;message&quot;, null);
+        
+        if (message == null || &quot;&quot;.equals(message.trim()))
+        {
+            def failedKeys = [ &quot;message&quot; ];
+            throw new ValidatorException(&quot;message must be set!&quot;, 
failedKeys);
+        }
+    }
+}               </pre></div>
                 
-              
-            
-            
-      
-              
-            <li class="expanded">
-                    <a href="../bridges-groovy/index.html">Groovy Bridge</a>
-                  <ul>
-                  
-    <li class="none">
-              <strong>Groovy PreferencesValidator Guide</strong>
-        </li>
-                  
-    <li class="none">
-                    <a href="../bridges-groovy/headersupport.html">Jetspeed 
HeaderPhase Support Guide</a>
-          </li>
-              </ul>
-        </li>
-          </ul>
-              <h5>Archived Portals Bridges</h5>
-            <ul>
-              
+            </div>
+                       
+<div class="section">
+<h3>2. The portlet.xml<a name="a2._The_portlet.xml"></a></h3>
+                       
+<p>
+                       Edit the file portlet.xml in the 
groovy-simplest/WEB-INF directory to add Groovy PreferencesValidator. In this 
case, &lt;portlet-preferences&gt; element is added to the previous example.
+                       </p>
+<div class="source">
+<pre>
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;portlet-app id=&quot;velocitysimplest&quot; version=&quot;1.0&quot;&gt;
+  &lt;portlet id=&quot;HelloGroovy&quot;&gt;
+    &lt;portlet-name&gt;HelloGroovy&lt;/portlet-name&gt;
+    &lt;display-name&gt;Hello Groovy Display Name&lt;/display-name&gt;
+    
&lt;portlet-class&gt;org.apache.portals.bridges.groovy.GroovyPortlet&lt;/portlet-class&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;script-source&lt;/name&gt;
+      &lt;!-- Note: You can set script source in three ways.
+                 The first is to use relative path uri,
+                 the second is to use file: url,
+                 and the last is to classpath: uri --&gt;
+      &lt;!--
+      &lt;value&gt;/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+      &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
+      --&gt;
+      &lt;value&gt;classpath:HelloGroovy.groovy&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;!-- If auto-refresh is true, then a modification of script source 
applies instantly. --&gt;
+    &lt;init-param&gt;
+      &lt;name&gt;auto-refresh&lt;/name&gt;
+      &lt;value&gt;true&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;supports&gt;
+      &lt;mime-type&gt;text/html&lt;/mime-type&gt;
+      &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
+      &lt;portlet-mode&gt;EDIT&lt;/portlet-mode&gt;
+      &lt;portlet-mode&gt;HELP&lt;/portlet-mode&gt;
+    &lt;/supports&gt;
+    &lt;supported-locale&gt;en&lt;/supported-locale&gt;
+    &lt;portlet-info&gt;
+      &lt;title&gt;Hello Groovy Title&lt;/title&gt;
+      &lt;short-title&gt;Hello Groovy Short Title&lt;/short-title&gt;
+    &lt;/portlet-info&gt;
+    &lt;portlet-preferences&gt;
+      &lt;preference&gt;
+        &lt;name&gt;validator-script-source&lt;/name&gt;
+        &lt;!-- Note: You can set script source in two ways.
+                   The first is to use classpath: path uri,
+                   and the other is to file: url.
+                   Note that relative path uri is not supported for 
preferences validator. --&gt;
+        &lt;value&gt;classpath:HelloGroovyValidator.groovy&lt;/value&gt;
+        &lt;!--
+        &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovyValidator.groovy&lt;/value&gt;
+        --&gt;
+        &lt;read-only&gt;true&lt;/read-only&gt;
+      &lt;/preference&gt;
+      &lt;preference&gt;
+        &lt;name&gt;validator-auto-refresh&lt;/name&gt;
+        &lt;!-- If validator-auto-refresh is true, 
+             then a modification of script source applies instantly. --&gt;
+        &lt;value&gt;true&lt;/value&gt;
+        &lt;read-only&gt;true&lt;/read-only&gt;
+      &lt;/preference&gt;
+      
&lt;preferences-validator&gt;org.apache.portals.bridges.groovy.GroovyPreferencesValidator&lt;/preferences-validator&gt;
+    &lt;/portlet-preferences&gt;
+  &lt;/portlet&gt;
+&lt;/portlet-app&gt;
+                       </pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>3. How to handle validation exception<a 
name="a3._How_to_handle_validation_exception"></a></h3>
+                       
+<p>If you set a preferences validator, you should handle a validation 
exception in your portlet code like the following example. The 
HelloGroovy.groovy in the previous example now handles validation exception 
during PortletPreferences.store() call.
+                </p>
+<div class="source">
+<pre>
+    public void processAction(ActionRequest request, ActionResponse response)
+    {
+        String message = request.getParameter(&quot;message&quot;);
+        
+        PortletPreferences prefs = request.getPreferences();
+        prefs.setValue(&quot;message&quot;, message);
+        
+        try {
+            prefs.store();
+        } catch (ValidatorException e) {
+            // send this error information to the rendering phase.
+            response.setRenderParameter(&quot;errorMessage&quot;, 
e.getMessage());
+        }
+    }
+                </pre></div>
                 
-              
-      
+            </div>
             
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-jsf/index.html">JSF Bridge</a>
-                </li>
-              
+<div class="section">
+<h3>4. Additional Notes<a name="a4._Additional_Notes"></a></h3>
                 
-              
-      
-            
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-php/index.html">PHP Bridge</a>
-                </li>
-              
-    <li class="none">
-                    <a href="../bridges-perl/index.html">Perl Bridge</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../bridges-portletfilter/index.html">Portlet 
Filter</a>
-          </li>
-          </ul>
-              <h5>Get Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../download.html">Download</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../release-notes.html">Release Notes</a>
-          </li>
-          </ul>
-              <h5>Support</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../team-list.html">Project Team</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../license.html">Project License</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../mail-lists.html">Mailing List</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../issue-tracking.html">Issue Tracking</a>
-          </li>
-          </ul>
-                                           <a href="http://maven.apache.org/"; 
title="Built by Maven" class="poweredBy">
-            <img alt="Built by Maven" 
src="../images/logos/maven-feather.png"></img>
-          </a>
-                       
-  
-
-  
-    
-  
-  
-    
-        </div>
-    </div>
-    <div id="bodyColumn">
-      <div id="contentBox">
-        <subtitle></subtitle><authors><person name="Woonsan Ko" 
email="[email protected]"></authors><div class="section"><h2><a 
name="Jetspeed_Groovy_PreferencesValidator_Guide"></a>Jetspeed Groovy 
PreferencesValidator Guide</h2>
-<p>
-                               This guide provides a tutorial for creating a 
Groovy Preferences Validator.
-                       </p>
-<div class="section"><h3><a 
name="a1._The_Groovy_PreferencesValidator_Class"></a>1. The Groovy 
PreferencesValidator Class</h3>
-<p>Create the file HelloGroovyValidator.groovy in a directory called 
groovy-simplest/WEB-INF/classes:
-                <div class="source"><pre>
-import javax.portlet.PortletPreferences;
-import javax.portlet.PreferencesValidator;
-import javax.portlet.ValidatorException;
+<p>In groovy, you can use powerful regular expressions like the following 
example:
+                </p>
+<div class="source">
+<pre>
+    public void validate(PortletPreferences preferences)
+    {
+        // Let's assume that we have a preference for an email address.
+        String email = preferences.getValue(&quot;email&quot;, &quot;&quot;);
+        
+        if (!(email ==~ 
/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/))
+        {
+            def failedKeys = [ &quot;email&quot; ];
+            throw new ValidatorException(&quot;message must be set!&quot;, 
failedKeys);
+        }
+    }
+                </pre></div>
+                
+                       </div>
+               </div>
+       
 
-public class HelloGroovyValidator implements PreferencesValidator
-{
-    public void validate(PortletPreferences preferences)
-    {
-        String message = preferences.getValue(&quot;message&quot;, null);
-        
-        if (message == null || &quot;&quot;.equals(message.trim()))
-        {
-            def failedKeys = [ &quot;message&quot; ];
-            throw new ValidatorException(&quot;message must be set!&quot;, 
failedKeys);
-        }
-    }
-}               </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a2._The_portlet.xml"></a>2. The 
portlet.xml</h3>
-<p>
-                       Edit the file portlet.xml in the 
groovy-simplest/WEB-INF directory to add Groovy PreferencesValidator. In this 
case, &lt;portlet-preferences&gt; element is added to the previous example.
-                       <div class="source"><pre>
-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;portlet-app id=&quot;velocitysimplest&quot; version=&quot;1.0&quot;&gt;
-  &lt;portlet id=&quot;HelloGroovy&quot;&gt;
-    &lt;portlet-name&gt;HelloGroovy&lt;/portlet-name&gt;
-    &lt;display-name&gt;Hello Groovy Display Name&lt;/display-name&gt;
-    
&lt;portlet-class&gt;org.apache.portals.bridges.groovy.GroovyPortlet&lt;/portlet-class&gt;
-    &lt;init-param&gt;
-      &lt;name&gt;script-source&lt;/name&gt;
-      &lt;!-- Note: You can set script source in three ways.
-                 The first is to use relative path uri,
-                 the second is to use file: url,
-                 and the last is to classpath: uri --&gt;
-      &lt;!--
-      &lt;value&gt;/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
-      &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovy.groovy&lt;/value&gt;
-      --&gt;
-      &lt;value&gt;classpath:HelloGroovy.groovy&lt;/value&gt;
-    &lt;/init-param&gt;
-    &lt;!-- If auto-refresh is true, then a modification of script source 
applies instantly. --&gt;
-    &lt;init-param&gt;
-      &lt;name&gt;auto-refresh&lt;/name&gt;
-      &lt;value&gt;true&lt;/value&gt;
-    &lt;/init-param&gt;
-    &lt;supports&gt;
-      &lt;mime-type&gt;text/html&lt;/mime-type&gt;
-      &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
-      &lt;portlet-mode&gt;EDIT&lt;/portlet-mode&gt;
-      &lt;portlet-mode&gt;HELP&lt;/portlet-mode&gt;
-    &lt;/supports&gt;
-    &lt;supported-locale&gt;en&lt;/supported-locale&gt;
-    &lt;portlet-info&gt;
-      &lt;title&gt;Hello Groovy Title&lt;/title&gt;
-      &lt;short-title&gt;Hello Groovy Short Title&lt;/short-title&gt;
-    &lt;/portlet-info&gt;
-    &lt;portlet-preferences&gt;
-      &lt;preference&gt;
-        &lt;name&gt;validator-script-source&lt;/name&gt;
-        &lt;!-- Note: You can set script source in two ways.
-                   The first is to use classpath: path uri,
-                   and the other is to file: url.
-                   Note that relative path uri is not supported for 
preferences validator. --&gt;
-        &lt;value&gt;classpath:HelloGroovyValidator.groovy&lt;/value&gt;
-        &lt;!--
-        &lt;value&gt;file:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/webapps/demo/WEB-INF/groovy/HelloGroovyValidator.groovy&lt;/value&gt;
-        --&gt;
-        &lt;read-only&gt;true&lt;/read-only&gt;
-      &lt;/preference&gt;
-      &lt;preference&gt;
-        &lt;name&gt;validator-auto-refresh&lt;/name&gt;
-        &lt;!-- If validator-auto-refresh is true, 
-             then a modification of script source applies instantly. --&gt;
-        &lt;value&gt;true&lt;/value&gt;
-        &lt;read-only&gt;true&lt;/read-only&gt;
-      &lt;/preference&gt;
-      
&lt;preferences-validator&gt;org.apache.portals.bridges.groovy.GroovyPreferencesValidator&lt;/preferences-validator&gt;
-    &lt;/portlet-preferences&gt;
-  &lt;/portlet&gt;
-&lt;/portlet-app&gt;
-                       </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a 
name="a3._How_to_handle_validation_exception"></a>3. How to handle validation 
exception</h3>
-<p>If you set a preferences validator, you should handle a validation 
exception in your portlet code like the following example. The 
HelloGroovy.groovy in the previous example now handles validation exception 
during PortletPreferences.store() call.
-                <div class="source"><pre>
-    public void processAction(ActionRequest request, ActionResponse response)
-    {
-        String message = request.getParameter(&quot;message&quot;);
-        
-        PortletPreferences prefs = request.getPreferences();
-        prefs.setValue(&quot;message&quot;, message);
-        
-        try {
-            prefs.store();
-        } catch (ValidatorException e) {
-            // send this error information to the rendering phase.
-            response.setRenderParameter(&quot;errorMessage&quot;, 
e.getMessage());
-        }
-    }
-                </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a4._Additional_Notes"></a>4. Additional 
Notes</h3>
-<p>In groovy, you can use powerful regular expressions like the following 
example:
-                <div class="source"><pre>
-    public void validate(PortletPreferences preferences)
-    {
-        // Let's assume that we have a preference for an email address.
-        String email = preferences.getValue(&quot;email&quot;, &quot;&quot;);
-        
-        if (!(email ==~ 
/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/))
-        {
-            def failedKeys = [ &quot;email&quot; ];
-            throw new ValidatorException(&quot;message must be set!&quot;, 
failedKeys);
-        }
-    }
-                </pre>
-</div>
-</p>
-</div>
-</div>
-
-      </div>
-    </div>
-    <div class="clear">
-      <hr/>
-    </div>
-    <div id="footer">
-      <div class="xright">&#169;  
-          2004-2011
-    
-          Apache Software Foundation
-          
-  
-
-  
-    
-  
-  
-    
-  </div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-  </body>
-</html>
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">
+              Copyright &#169;                    2004-2022
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+                  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>

Modified: portals/site-live/bridges/bridges-jsf/guide.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-jsf/guide.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-jsf/guide.html (original)
+++ portals/site-live/bridges/bridges-jsf/guide.html Tue May 31 02:19:06 2022
@@ -1,422 +1,393 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
-
-
-
-
-
-
-
-
-
-
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-  <head>
-    <title>Apache Portals Bridges - Jetspeed Simple JSF Portlet Guide</title>
-    <style type="text/css" media="all">
-      @import url("../css/maven-base.css");
-      @import url("../css/maven-theme.css");
-      @import url("../css/site.css");
-    </style>
-    <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
-        <meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1" />
-      </head>
-  <body class="composite">
-    <div id="banner">
-                  <a href="http://portals.apache.org/"; id="bannerLeft">
-    
-                                            <img 
src="../images/apache-portals.gif" alt="" />
-    
-            </a>
-                        <a href="http://portals.apache.org/bridges/"; 
id="bannerRight">
-    
-            Apache Portals Bridges
-    
-            </a>
-            <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="breadcrumbs">
-          
-  
-
-  
-    
-  
-  
-    
-            <div class="xleft">
-        Last Published: 29 September 2011
-                      </div>
-            <div class="xright">            <a 
href="http://portals.apache.org/"; class="externalLink">Portals</a>
-            |
-                <a href="http://portals.apache.org/applications"; 
class="externalLink">Applications</a>
-            |
-                <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink">Jetspeed-2</a>
-            |
-                <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink">JSR-168</a>
-            |
-                <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink">JSR-286</a>
-            
-  
-
-  
-    
-  
-  
-    
-  </div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="leftColumn">
-      <div id="navcolumn">
-           
-  
-
-  
-    
-  
-  
-    
-                   <h5>Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../index.html">Overview</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../news.html">News and Status</a>
-          </li>
-          </ul>
-              <h5>Current Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../bridges-common/index.html">Common Utilities 
and Interfaces</a>
-          </li>
-              
-                
-              
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-struts/index.html">Struts Bridge</a>
-                </li>
-              
-    <li class="none">
-                    <a href="../bridges-velocity/index.html">Velocity 
Bridge</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../bridges-script/index.html">Script Bridge</a>
-          </li>
-              
-                
-              
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-groovy/index.html">Groovy Bridge</a>
-                </li>
-          </ul>
-              <h5>Archived Portals Bridges</h5>
-            <ul>
-              
-                
-              
-            
-            
-      
-              
-            <li class="expanded">
-                    <a href="../bridges-jsf/index.html">JSF Bridge</a>
-                  <ul>
-                  
-    <li class="none">
-              <strong>Guide</strong>
-        </li>
-                  
-    <li class="none">
-                    <a href="../bridges-jsf/myfaces-demo.html">MyFaces Demo</a>
-          </li>
-              </ul>
-        </li>
-              
-                
-              
-      
-            
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-php/index.html">PHP Bridge</a>
-                </li>
-              
-    <li class="none">
-                    <a href="../bridges-perl/index.html">Perl Bridge</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../bridges-portletfilter/index.html">Portlet 
Filter</a>
-          </li>
-          </ul>
-              <h5>Get Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../download.html">Download</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../release-notes.html">Release Notes</a>
-          </li>
-          </ul>
-              <h5>Support</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../team-list.html">Project Team</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../license.html">Project License</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../mail-lists.html">Mailing List</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../issue-tracking.html">Issue Tracking</a>
-          </li>
-          </ul>
-                                           <a href="http://maven.apache.org/"; 
title="Built by Maven" class="poweredBy">
-            <img alt="Built by Maven" 
src="../images/logos/maven-feather.png"></img>
-          </a>
-                       
-  
-
-  
-    
-  
-  
-    
-        </div>
-    </div>
-    <div id="bodyColumn">
-      <div id="contentBox">
-        <subtitle></subtitle><authors><person name="David Le Strat" 
email="[email protected]"><person name="Philip Mark Donaghy" 
email="[email protected]"></authors><div class="section"><h2><a 
name="Jetspeed_Simple_JSF_Portlet_Guide"></a>Jetspeed Simple JSF Portlet 
Guide</h2>
-<p>
-                               This guide provides a tutorial for creating a 
very
-                               simple JSF portlet with one template in the 
portlet view mode.
-                       </p>
-<div class="section"><h3><a name="a1._The_Portlet_Class"></a>1. The Portlet 
Class</h3>
-<p>
-                               Create the file JSFSimplest.java in a directory 
called
-                               jsf-simplest/WEB-INF/classes:
-                               <div class="source"><pre>
-public class JSFSimplest extends org.apache.portals.bridges.jsf.FacesPortlet
-{
-
-    public void doView(javax.portlet.RenderRequest request, 
javax.portlet.RenderResponse response)
-                throws javax.portlet.PortletException, java.io.IOException
-    {
-        super.doView(request, response);
-    }
-}
-                               </pre>
-</div>
-</p>
-<p>
-                               Compile the class in the 
jsf-simplest/WEB-INF/classes directory using the command,
-                               <div class="source"><pre>
-javac -cp 
portlet-api-1.0.jar:portals-bridges-jsf-1.0.jar:portals-bridges-common-1.0.jar 
JSFSimplest.java
-                               </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a2._The_portlet.xml"></a>2. The 
portlet.xml</h3>
-<p>
-                       Create the file portlet.xml in the jsf-simplest/WEB-INF 
directory.
-                       <div class="source"><pre>
-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;portlet-app id=&quot;jsfsimplest&quot; version=&quot;1.0&quot;&gt;
-  &lt;portlet id=&quot;JSFSimplest&quot;&gt;
-    &lt;portlet-name&gt;JSFSimplestPortlet&lt;/portlet-name&gt;
-    &lt;display-name&gt;JSF Simplest Display Name&lt;/display-name&gt;
-    &lt;portlet-class&gt;JSFSimplest&lt;/portlet-class&gt;
-    &lt;init-param&gt;
-        &lt;name&gt;ViewPage&lt;/name&gt;
-        &lt;value&gt;/WEB-INF/view/view.jsp&lt;/value&gt;
-    &lt;/init-param&gt;
-    &lt;supports&gt;
-      &lt;mime-type&gt;text/html&lt;/mime-type&gt;
-      &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
-    &lt;/supports&gt;
-    &lt;supported-locale&gt;en&lt;/supported-locale&gt;
-    &lt;supported-locale&gt;fr&lt;/supported-locale&gt;
-    &lt;portlet-info&gt;
-      &lt;title&gt;JSF Simplest Title&lt;/title&gt;
-      &lt;short-title&gt;JSF Simplest Short Title&lt;/short-title&gt;
-    &lt;/portlet-info&gt;
-  &lt;/portlet&gt;
-&lt;/portlet-app&gt;
-                       </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a3._The_web.xml"></a>3. The web.xml</h3>
-<p>
-                       Create the file web.xml in the jsf-simplest/WEB-INF 
directory.
-                       <div class="source"><pre>
-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;!DOCTYPE web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web 
Application 2.3//EN&quot;
-                         
&quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;&gt;
-&lt;web-app&gt;
-  &lt;display-name&gt;JSF Simplest&lt;/display-name&gt;
-  &lt;description&gt;The world's simplest JSF portlet&lt;/description&gt;
-
-  &lt;!-- Faces Config --&gt;
-  &lt;context-param&gt;
-    &lt;param-name&gt;javax.faces.application.CONFIG_FILES&lt;/param-name&gt;
-    &lt;param-value&gt;/WEB-INF/faces-config.xml&lt;/param-value&gt;
-  &lt;/context-param&gt;
-
-  &lt;!-- Faces Servlet --&gt;
-  &lt;servlet&gt;
-    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
-    &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
-  &lt;/servlet&gt;
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <title>Apache Portals Bridges - 
+               Jetspeed Simple JSF Portlet Guide</title>
+    <style type="text/css" media="all">
+      @import url("../css/maven-base.css");
+      @import url("../css/maven-theme.css");
+      @import url("../css/site.css");
+    </style>
+    <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
+    <meta name="Date-Revision-yyyymmdd" content="20220526" />
+    <meta http-equiv="Content-Language" content="en" />
+        
+        </head>
+  <body class="composite">
+    <div id="banner">
+                        <a href="http://portals.apache.org/"; id="bannerLeft">
+                                                <img 
src="../images/apache-portals.gif" alt="Apache Software Foundation" />
+                </a>
+                              <a href="http://portals.apache.org/bridges/"; 
id="bannerRight">
+                Apache Portals Bridges
+                </a>
+            <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="breadcrumbs">
+            
+                    
+                <div class="xleft">
+        <span id="publishDate">Last Published: 26 May 2022</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0</span>
+                      </div>
+            <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
+            |
+                        <a href="http://portals.apache.org/applications"; 
class="externalLink" target="_nw" title="Applications">Applications</a>
+            |
+                        <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink" target="_nw" title="Jetspeed-2">Jetspeed-2</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink" target="_nw" title="JSR-168">JSR-168</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink" target="_nw" title="JSR-286">JSR-286</a>
+              
+                    
+      </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="leftColumn">
+      <div id="navcolumn">
+             
+                    
+                                <h5>Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../index.html" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+                          <a href="../news.html" title="News and Status">News 
and Status</a>
+            </li>
+          </ul>
+                       <h5>Current Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../bridges-common/index.html" title="Common 
Utilities and Interfaces">Common Utilities and Interfaces</a>
+            </li>
+                                                                    <li 
class="collapsed">
+                          <a href="../bridges-struts/index.html" title="Struts 
Bridge">Struts Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-velocity/index.html" 
title="Velocity Bridge">Velocity Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-script/index.html" title="Script 
Bridge">Script Bridge</a>
+            </li>
+                                                                               
       <li class="collapsed">
+                          <a href="../bridges-groovy/index.html" title="Groovy 
Bridge">Groovy Bridge</a>
+                  </li>
+          </ul>
+                       <h5>Archived Portals Bridges</h5>
+                  <ul>
+                                                                               
                 <li class="expanded">
+                          <a href="../bridges-jsf/index.html" title="JSF 
Bridge">JSF Bridge</a>
+                    <ul>
+                      <li class="none">
+            <strong>Guide</strong>
+          </li>
+                      <li class="none">
+                          <a href="../bridges-jsf/myfaces-demo.html" 
title="MyFaces Demo">MyFaces Demo</a>
+            </li>
+              </ul>
+        </li>
+                                                                               
                         <li class="collapsed">
+                          <a href="../bridges-php/index.html" title="PHP 
Bridge">PHP Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-perl/index.html" title="Perl 
Bridge">Perl Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-portletfilter/index.html" 
title="Portlet Filter">Portlet Filter</a>
+            </li>
+          </ul>
+                       <h5>Get Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../download.html" 
title="Download">Download</a>
+            </li>
+                  <li class="none">
+                          <a href="../release-notes.html" title="Release 
Notes">Release Notes</a>
+            </li>
+          </ul>
+                       <h5>Support</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../team-list.html" title="Project 
Team">Project Team</a>
+            </li>
+                  <li class="none">
+                          <a href="../license.html" title="Project 
License">Project License</a>
+            </li>
+                  <li class="none">
+                          <a href="../mail-lists.html" title="Mailing 
List">Mailing List</a>
+            </li>
+                  <li class="none">
+                          <a href="../issue-tracking.html" title="Issue 
Tracking">Issue Tracking</a>
+            </li>
+          </ul>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="poweredBy" alt="Built by Maven" 
src="../images/logos/maven-feather.png" />
+      </a>
+                   
+                    
+            </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        <!-- 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. -->
+       
+               <div class="section">
+<h2>Jetspeed Simple JSF Portlet Guide<a 
name="Jetspeed_Simple_JSF_Portlet_Guide"></a></h2>
+                       
+<p>
+                               This guide provides a tutorial for creating a 
very
+                               simple JSF portlet with one template in the 
portlet view mode.
+                       </p>
+                       
+<div class="section">
+<h3>1. The Portlet Class<a name="a1._The_Portlet_Class"></a></h3>
+                               
+<p>
+                               Create the file JSFSimplest.java in a directory 
called
+                               jsf-simplest/WEB-INF/classes:
+                               </p>
+<div class="source">
+<pre>
+public class JSFSimplest extends org.apache.portals.bridges.jsf.FacesPortlet
+{
+
+    public void doView(javax.portlet.RenderRequest request, 
javax.portlet.RenderResponse response)
+                throws javax.portlet.PortletException, java.io.IOException
+    {
+        super.doView(request, response);
+    }
+}
+                               </pre></div>
+                               
+                               
+<p>
+                               Compile the class in the 
jsf-simplest/WEB-INF/classes directory using the command,
+                               </p>
+<div class="source">
+<pre>
+javac -cp 
portlet-api-1.0.jar:portals-bridges-jsf-1.0.jar:portals-bridges-common-1.0.jar 
JSFSimplest.java
+                               </pre></div>
+                               
+                       </div>
+                       
+<div class="section">
+<h3>2. The portlet.xml<a name="a2._The_portlet.xml"></a></h3>
+                       
+<p>
+                       Create the file portlet.xml in the jsf-simplest/WEB-INF 
directory.
+                       </p>
+<div class="source">
+<pre>
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;portlet-app id=&quot;jsfsimplest&quot; version=&quot;1.0&quot;&gt;
+  &lt;portlet id=&quot;JSFSimplest&quot;&gt;
+    &lt;portlet-name&gt;JSFSimplestPortlet&lt;/portlet-name&gt;
+    &lt;display-name&gt;JSF Simplest Display Name&lt;/display-name&gt;
+    &lt;portlet-class&gt;JSFSimplest&lt;/portlet-class&gt;
+    &lt;init-param&gt;
+        &lt;name&gt;ViewPage&lt;/name&gt;
+        &lt;value&gt;/WEB-INF/view/view.jsp&lt;/value&gt;
+    &lt;/init-param&gt;
+    &lt;supports&gt;
+      &lt;mime-type&gt;text/html&lt;/mime-type&gt;
+      &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
+    &lt;/supports&gt;
+    &lt;supported-locale&gt;en&lt;/supported-locale&gt;
+    &lt;supported-locale&gt;fr&lt;/supported-locale&gt;
+    &lt;portlet-info&gt;
+      &lt;title&gt;JSF Simplest Title&lt;/title&gt;
+      &lt;short-title&gt;JSF Simplest Short Title&lt;/short-title&gt;
+    &lt;/portlet-info&gt;
+  &lt;/portlet&gt;
+&lt;/portlet-app&gt;
+                       </pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>3. The web.xml<a name="a3._The_web.xml"></a></h3>
+                       
+<p>
+                       Create the file web.xml in the jsf-simplest/WEB-INF 
directory.
+                       </p>
+<div class="source">
+<pre>
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;!DOCTYPE web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web 
Application 2.3//EN&quot;
+                         
&quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;&gt;
+&lt;web-app&gt;
+  &lt;display-name&gt;JSF Simplest&lt;/display-name&gt;
+  &lt;description&gt;The world's simplest JSF portlet&lt;/description&gt;
+
+  &lt;!-- Faces Config --&gt;
+  &lt;context-param&gt;
+    &lt;param-name&gt;javax.faces.application.CONFIG_FILES&lt;/param-name&gt;
+    &lt;param-value&gt;/WEB-INF/faces-config.xml&lt;/param-value&gt;
+  &lt;/context-param&gt;
+
+  &lt;!-- Faces Servlet --&gt;
+  &lt;servlet&gt;
+    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
+    &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
+  &lt;/servlet&gt;
+
+  &lt;!-- Faces extension mapping --&gt;
+  &lt;servlet-mapping&gt;
+    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
+    &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
+  &lt;/servlet-mapping&gt;
+&lt;/web-app&gt;
+                       </pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>4. The View<a name="a4._The_View"></a></h3>
+                       
+<p>
+                        Create the view.jsp file in the 
jsf-simplest/WEB-INF/view directory.
+</p>
+<div class="source">
+<pre>
+&lt;%@ taglib uri=&quot;http://java.sun.com/jsf/core&quot; 
prefix=&quot;f&quot; %&gt;
+&lt;%@ taglib uri=&quot;/WEB-INF/tld/portlet.tld&quot; prefix='portlet'%&gt;
+&lt;portlet:defineObjects/&gt;
+&lt;f:view&gt;
+   &lt;h2&gt;A JSF Portlet&lt;/h2&gt;
+   Hello
+   &lt;% if ( renderRequest.getUserPrincipal() == null ) { %&gt;
+   guest
+   &lt;% } else { %&gt;
+   &lt;%=renderRequest.getUserPrincipal().getName()%&gt;
+   &lt;% } %&gt;!
+&lt;/f:view&gt;
+</pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>5. The faces-config.xml<a name="a5._The_faces-config.xml"></a></h3>
+                       
+<p>
+                        Create a faces-config.xml file in the 
jsf-simplest/WEB-INF directory.
+</p>
+<div class="source">
+<pre>
+&lt;?xml version='1.0' encoding='UTF-8'?&gt;
+&lt;!DOCTYPE faces-config PUBLIC
+  &quot;-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN&quot;
+  &quot;http://java.sun.com/dtd/web-facesconfig_1_1.dtd&quot;&gt;
+
+&lt;faces-config&gt;
+
+  &lt;application&gt;
+    &lt;locale-config&gt;
+      &lt;default-locale&gt;en&lt;/default-locale&gt;
+      &lt;supported-locale&gt;fr&lt;/supported-locale&gt;
+    &lt;/locale-config&gt;
+  &lt;/application&gt;
+
+&lt;/faces-config&gt;
+</pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>6. The Dependency JARs<a name="a6._The_Dependency_JARs"></a></h3>
+                       
+<p>
+                        Copy the dependencies to the WEB-INF/lib directory. 
+                        These jars should be in your Maven repository. If so 
executing these commands in the lib
+                        directory will set up the dependencies for you.
+</p>
+<div class="source">
+<pre>
+ln -s ~/.maven/repository/commons-beanutils/jars/commons-beanutils-1.7.0.jar
+ln -s ~/.maven/repository/commons-collections/jars/commons-collections-3.1.jar
+ln -s ~/.maven/repository/commons-digester/jars/commons-digester-1.7.jar
+ln -s ~/.maven/repository/myfaces/jars/myfaces-api-1.1.0.jar
+ln -s ~/.maven/repository/myfaces/jars/myfaces-impl-1.1.0.jar
+ln -s ~/.maven/repository/myfaces/jars/tomahawk-1.1.0.jar
+ln -s 
~/.maven/repository/org.apache.portals.bridges/jars/portals-bridges-jsf-1.0.jar
+ln -s ~/.maven/repository/xerces/jars/xerces-2.4.0.jar
+ln -s ~/.maven/repository/xml-apis/jars/xml-apis-2.0.2.jar
+</pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>7. The WAR file<a name="a7._The_WAR_file"></a></h3>
+                       
+<p>
+                       From the directory jsf-simplest combine the files above 
into a war file using the command,
+                       </p>
+<div class="source">
+<pre>
+jar cvf ../jsfsimplest.war .
+                       </pre></div>
+                       
+                       </div>
+                       
+<div class="section">
+<h3>8. Deploy the WAR file<a name="a8._Deploy_the_WAR_file"></a></h3>
+                       
+<p>
+                       Copy the war file to 
<tt>$CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy</tt>.
+                        Jetspeed-2 will deploy the webapp.
+                       </p>
+                       </div>
+                       
+<div class="section">
+<h3>9. The PSML<a name="a9._The_PSML"></a></h3>
+                       
+<p>
+                        Create the PSML page using the Jetspeed portlet 
chooser. Login and click on the
+                        edit page icon. Click on the add portlet icon.
+                        Checkbox and add the JSFSimplestPortlet to your page.
+                        Your user must have the permission to edit pages. The 
user <tt>admin</tt>
+                        password
+                        <tt>admin</tt> has permission to edit all pages.
+                       </p>
+                       </div>
+               </div>
+       
 
-  &lt;!-- Faces extension mapping --&gt;
-  &lt;servlet-mapping&gt;
-    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
-    &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
-  &lt;/servlet-mapping&gt;
-&lt;/web-app&gt;
-                       </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a4._The_View"></a>4. The View</h3>
-<p>
-                        Create the view.jsp file in the 
jsf-simplest/WEB-INF/view directory.
-<div class="source"><pre>
-&lt;%@ taglib uri=&quot;http://java.sun.com/jsf/core&quot; 
prefix=&quot;f&quot; %&gt;
-&lt;%@ taglib uri=&quot;/WEB-INF/tld/portlet.tld&quot; prefix='portlet'%&gt;
-&lt;portlet:defineObjects/&gt;
-&lt;f:view&gt;
-   &lt;h2&gt;A JSF Portlet&lt;/h2&gt;
-   Hello
-   &lt;% if ( renderRequest.getUserPrincipal() == null ) { %&gt;
-   guest
-   &lt;% } else { %&gt;
-   &lt;%=renderRequest.getUserPrincipal().getName()%&gt;
-   &lt;% } %&gt;!
-&lt;/f:view&gt;
-</pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a5._The_faces-config.xml"></a>5. The 
faces-config.xml</h3>
-<p>
-                        Create a faces-config.xml file in the 
jsf-simplest/WEB-INF directory.
-<div class="source"><pre>
-&lt;?xml version='1.0' encoding='UTF-8'?&gt;
-&lt;!DOCTYPE faces-config PUBLIC
-  &quot;-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN&quot;
-  &quot;http://java.sun.com/dtd/web-facesconfig_1_1.dtd&quot;&gt;
-
-&lt;faces-config&gt;
-
-  &lt;application&gt;
-    &lt;locale-config&gt;
-      &lt;default-locale&gt;en&lt;/default-locale&gt;
-      &lt;supported-locale&gt;fr&lt;/supported-locale&gt;
-    &lt;/locale-config&gt;
-  &lt;/application&gt;
-
-&lt;/faces-config&gt;
-</pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a6._The_Dependency_JARs"></a>6. The 
Dependency JARs</h3>
-<p>
-                        Copy the dependencies to the WEB-INF/lib directory. 
-                        These jars should be in your Maven repository. If so 
executing these commands in the lib
-                        directory will set up the dependencies for you.
-<div class="source"><pre>
-ln -s ~/.maven/repository/commons-beanutils/jars/commons-beanutils-1.7.0.jar
-ln -s ~/.maven/repository/commons-collections/jars/commons-collections-3.1.jar
-ln -s ~/.maven/repository/commons-digester/jars/commons-digester-1.7.jar
-ln -s ~/.maven/repository/myfaces/jars/myfaces-api-1.1.0.jar
-ln -s ~/.maven/repository/myfaces/jars/myfaces-impl-1.1.0.jar
-ln -s ~/.maven/repository/myfaces/jars/tomahawk-1.1.0.jar
-ln -s 
~/.maven/repository/org.apache.portals.bridges/jars/portals-bridges-jsf-1.0.jar
-ln -s ~/.maven/repository/xerces/jars/xerces-2.4.0.jar
-ln -s ~/.maven/repository/xml-apis/jars/xml-apis-2.0.2.jar
-</pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a7._The_WAR_file"></a>7. The WAR file</h3>
-<p>
-                       From the directory jsf-simplest combine the files above 
into a war file using the command,
-                       <div class="source"><pre>
-jar cvf ../jsfsimplest.war .
-                       </pre>
-</div>
-</p>
-</div>
-<div class="section"><h3><a name="a8._Deploy_the_WAR_file"></a>8. Deploy the 
WAR file</h3>
-<p>
-                       Copy the war file to 
<code>$CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy</code>.
-                        Jetspeed-2 will deploy the webapp.
-                       </p>
-</div>
-<div class="section"><h3><a name="a9._The_PSML"></a>9. The PSML</h3>
-<p>
-                        Create the PSML page using the Jetspeed portlet 
chooser. Login and click on the
-                        edit page icon. Click on the add portlet icon.
-                        Checkbox and add the JSFSimplestPortlet to your page.
-                        Your user must have the permission to edit pages. The 
user <code>admin</code>
-                        password
-                        <code>admin</code> has permission to edit all pages.
-                       </p>
-</div>
-</div>
-
-      </div>
-    </div>
-    <div class="clear">
-      <hr/>
-    </div>
-    <div id="footer">
-      <div class="xright">&#169;  
-          2004-2011
-    
-          Apache Software Foundation
-          
-  
-
-  
-    
-  
-  
-    
-  </div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-  </body>
-</html>
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">
+              Copyright &#169;                    2004-2022
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+                  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>

Modified: portals/site-live/bridges/bridges-jsf/index.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-jsf/index.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-jsf/index.html (original)
+++ portals/site-live/bridges/bridges-jsf/index.html Tue May 31 02:19:06 2022
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
-<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 1 May 2015 -->
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
 <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -11,7 +11,7 @@
       @import url("../css/site.css");
     </style>
     <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
-    <meta name="Date-Revision-yyyymmdd" content="20150501" />
+    <meta name="Date-Revision-yyyymmdd" content="20220526" />
     <meta http-equiv="Content-Language" content="en" />
         
         </head>
@@ -31,7 +31,7 @@
             
                     
                 <div class="xleft">
-        <span id="publishDate">Last Published: 1 May 2015</span>
+        <span id="publishDate">Last Published: 26 May 2022</span>
                   &nbsp;| <span id="projectVersion">Version: 1.0</span>
                       </div>
             <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
@@ -137,96 +137,96 @@
     </div>
     <div id="bodyColumn">
       <div id="contentBox">
-        <!-- 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. -->
-  
-    <div class="section">
-<h2>About Apache Portals JSF Bridge<a 
name="About_Apache_Portals_JSF_Bridge"></a></h2>
-      
-<p>
-        The JSF Bridge allows <a class="externalLink" 
href="http://java.sun.com/j2ee/javaserverfaces/";>Java Server Faces</a> to be run
-        as <a class="externalLink" 
href="http://www.jcp.org/en/jsr/detail?id=168";>JSR-168</a> compliant Portlets 
with very little change
-        made to the JSF application.
-      </p>
-      
-<p>
-        Existing or new JSF Applications can be transparently deployed as 
Portlet Application or
-        Web Application.<br />
-      </p>
-        
-<p>
-            The latest release of Portals JSF Bridge is <a 
class="externalLink" 
href="http://www.apache.org/dyn/closer.cgi/portals/bridges/sources/portals-bridges-jsf-1.1-source-release.zip";>version
 1.1</a>
-        </p>
-      
-<p>
-        For examples of how to use the JSF bridge, please go to the 
-        <a href="../jsf-demo/index.html">JSF Portlet Demo</a> application 
which J2's JSF Portlet Bridge.
-      </p>
-      
-<p>
-        J2's portlet bridge provides a generic JSF portlet that can be 
extended by your custom application or configured
-        in <i>portlet.xml</i> in order to run a JSF application.
-      </p>
-      
-<p>
-        The <i>&lt;init-param&gt;</i> element of the <i>portlet.xml</i> can be 
configured to support multiple view when using
-        <i>org.apache.portals.bridges.jsf.FacesPortlet</i> as a portlet class.
-      </p>
-      
-<p>
-      </p>
-<table border="0" class="bodyTable">
-               
-<tr class="a"> 
-                   
-<th>&lt;init-param&gt;</th>
-                   
-<th>Description</th>
-               </tr>
-        
-<tr class="b"> 
-            
-<td>ViewPage</td>
-            
-<td>The default page in view mode.</td>
-        </tr>
-        
-<tr class="a"> 
-            
-<td>EditPage</td>
-            
-<td>The default page in edit mode.</td>
-        </tr>
-        
-<tr class="b"> 
-            
-<td>HelpPage</td>
-            
-<td>The default page in help mode.</td>
-        </tr>
-        
-<tr class="a"> 
-            
-<td>CustomPage</td>
-            
-<td>The default page in custom mode.</td>
-        </tr>
-         </table>
-      
-    </div>
-  
+        <!-- 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. -->
+  
+    <div class="section">
+<h2>About Apache Portals JSF Bridge<a 
name="About_Apache_Portals_JSF_Bridge"></a></h2>
+      
+<p>
+        The JSF Bridge allows <a class="externalLink" 
href="http://java.sun.com/j2ee/javaserverfaces/";>Java Server Faces</a> to be run
+        as <a class="externalLink" 
href="http://www.jcp.org/en/jsr/detail?id=168";>JSR-168</a> compliant Portlets 
with very little change
+        made to the JSF application.
+      </p>
+      
+<p>
+        Existing or new JSF Applications can be transparently deployed as 
Portlet Application or
+        Web Application.<br />
+      </p>
+        
+<p>
+            The latest release of Portals JSF Bridge is <a 
class="externalLink" 
href="http://www.apache.org/dyn/closer.cgi/portals/bridges/sources/portals-bridges-jsf-1.1-source-release.zip";>version
 1.1</a>
+        </p>
+      
+<p>
+        For examples of how to use the JSF bridge, please go to the 
+        <a href="../jsf-demo/index.html">JSF Portlet Demo</a> application 
which J2's JSF Portlet Bridge.
+      </p>
+      
+<p>
+        J2's portlet bridge provides a generic JSF portlet that can be 
extended by your custom application or configured
+        in <i>portlet.xml</i> in order to run a JSF application.
+      </p>
+      
+<p>
+        The <i>&lt;init-param&gt;</i> element of the <i>portlet.xml</i> can be 
configured to support multiple view when using
+        <i>org.apache.portals.bridges.jsf.FacesPortlet</i> as a portlet class.
+      </p>
+      
+<p>
+      </p>
+<table border="0" class="bodyTable">
+               
+<tr class="a"> 
+                   
+<th>&lt;init-param&gt;</th>
+                   
+<th>Description</th>
+               </tr>
+        
+<tr class="b"> 
+            
+<td>ViewPage</td>
+            
+<td>The default page in view mode.</td>
+        </tr>
+        
+<tr class="a"> 
+            
+<td>EditPage</td>
+            
+<td>The default page in edit mode.</td>
+        </tr>
+        
+<tr class="b"> 
+            
+<td>HelpPage</td>
+            
+<td>The default page in help mode.</td>
+        </tr>
+        
+<tr class="a"> 
+            
+<td>CustomPage</td>
+            
+<td>The default page in custom mode.</td>
+        </tr>
+         </table>
+      
+    </div>
+  
 
       </div>
     </div>
@@ -235,7 +235,7 @@ limitations under the License. -->
     </div>
     <div id="footer">
       <div class="xright">
-              Copyright &#169;                    2004-2015
+              Copyright &#169;                    2004-2022
                         <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
             All Rights Reserved.      
                     

Modified: portals/site-live/bridges/bridges-jsf/myfaces-demo.html
URL: 
http://svn.apache.org/viewvc/portals/site-live/bridges/bridges-jsf/myfaces-demo.html?rev=1901429&r1=1901428&r2=1901429&view=diff
==============================================================================
--- portals/site-live/bridges/bridges-jsf/myfaces-demo.html (original)
+++ portals/site-live/bridges/bridges-jsf/myfaces-demo.html Tue May 31 02:19:06 
2022
@@ -1,304 +1,250 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 26 May 2022 -->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <title>Apache Portals Bridges - 
+    Jetspeed MyFaces Demo Portlet Configuration</title>
+    <style type="text/css" media="all">
+      @import url("../css/maven-base.css");
+      @import url("../css/maven-theme.css");
+      @import url("../css/site.css");
+    </style>
+    <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
+    <meta name="Date-Revision-yyyymmdd" content="20220526" />
+    <meta http-equiv="Content-Language" content="en" />
+        
+        </head>
+  <body class="composite">
+    <div id="banner">
+                        <a href="http://portals.apache.org/"; id="bannerLeft">
+                                                <img 
src="../images/apache-portals.gif" alt="Apache Software Foundation" />
+                </a>
+                              <a href="http://portals.apache.org/bridges/"; 
id="bannerRight">
+                Apache Portals Bridges
+                </a>
+            <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="breadcrumbs">
+            
+                    
+                <div class="xleft">
+        <span id="publishDate">Last Published: 26 May 2022</span>
+                  &nbsp;| <span id="projectVersion">Version: 1.0</span>
+                      </div>
+            <div class="xright">                    <a 
href="http://portals.apache.org/"; class="externalLink" target="_nw" 
title="Portals">Portals</a>
+            |
+                        <a href="http://portals.apache.org/applications"; 
class="externalLink" target="_nw" title="Applications">Applications</a>
+            |
+                        <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink" target="_nw" title="Jetspeed-2">Jetspeed-2</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink" target="_nw" title="JSR-168">JSR-168</a>
+            |
+                        <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink" target="_nw" title="JSR-286">JSR-286</a>
+              
+                    
+      </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+    <div id="leftColumn">
+      <div id="navcolumn">
+             
+                    
+                                <h5>Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../index.html" title="Overview">Overview</a>
+            </li>
+                  <li class="none">
+                          <a href="../news.html" title="News and Status">News 
and Status</a>
+            </li>
+          </ul>
+                       <h5>Current Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../bridges-common/index.html" title="Common 
Utilities and Interfaces">Common Utilities and Interfaces</a>
+            </li>
+                                                                    <li 
class="collapsed">
+                          <a href="../bridges-struts/index.html" title="Struts 
Bridge">Struts Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-velocity/index.html" 
title="Velocity Bridge">Velocity Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-script/index.html" title="Script 
Bridge">Script Bridge</a>
+            </li>
+                                                                               
       <li class="collapsed">
+                          <a href="../bridges-groovy/index.html" title="Groovy 
Bridge">Groovy Bridge</a>
+                  </li>
+          </ul>
+                       <h5>Archived Portals Bridges</h5>
+                  <ul>
+                                                                               
                 <li class="expanded">
+                          <a href="../bridges-jsf/index.html" title="JSF 
Bridge">JSF Bridge</a>
+                    <ul>
+                      <li class="none">
+                          <a href="../bridges-jsf/guide.html" 
title="Guide">Guide</a>
+            </li>
+                      <li class="none">
+            <strong>MyFaces Demo</strong>
+          </li>
+              </ul>
+        </li>
+                                                                               
                         <li class="collapsed">
+                          <a href="../bridges-php/index.html" title="PHP 
Bridge">PHP Bridge</a>
+                  </li>
+                  <li class="none">
+                          <a href="../bridges-perl/index.html" title="Perl 
Bridge">Perl Bridge</a>
+            </li>
+                  <li class="none">
+                          <a href="../bridges-portletfilter/index.html" 
title="Portlet Filter">Portlet Filter</a>
+            </li>
+          </ul>
+                       <h5>Get Portals Bridges</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../download.html" 
title="Download">Download</a>
+            </li>
+                  <li class="none">
+                          <a href="../release-notes.html" title="Release 
Notes">Release Notes</a>
+            </li>
+          </ul>
+                       <h5>Support</h5>
+                  <ul>
+                  <li class="none">
+                          <a href="../team-list.html" title="Project 
Team">Project Team</a>
+            </li>
+                  <li class="none">
+                          <a href="../license.html" title="Project 
License">Project License</a>
+            </li>
+                  <li class="none">
+                          <a href="../mail-lists.html" title="Mailing 
List">Mailing List</a>
+            </li>
+                  <li class="none">
+                          <a href="../issue-tracking.html" title="Issue 
Tracking">Issue Tracking</a>
+            </li>
+          </ul>
+                             <a href="http://maven.apache.org/"; title="Built 
by Maven" class="poweredBy">
+        <img class="poweredBy" alt="Built by Maven" 
src="../images/logos/maven-feather.png" />
+      </a>
+                   
+                    
+            </div>
+    </div>
+    <div id="bodyColumn">
+      <div id="contentBox">
+        <!-- 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. -->
+  
+<div class="section">
+<h2>Introduction<a name="Introduction"></a></h2>
+
+<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>
+</div>
+
+<div class="section">
+<h2>Configuration MyFaces as a Portlet<a 
name="Configuration_MyFaces_as_a_Portlet"></a></h2>
+
+<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:
+</p>
+<div class="source">
+<pre>
+&lt;init-param&gt;
+    &lt;name&gt;ViewPage&lt;/name&gt;
+    &lt;value&gt;/greeting.jsp&lt;/value&gt;
+&lt;/init-param&gt;
+</pre></div>
+
+
+<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:
+</p>
+<div class="source">
+<pre>
+&lt;portlet-class&gt;org.apache.portals.bridges.jsf.FacesPortlet&lt;/portlet-class&gt;
+</pre></div>
+
+
+<p>
+This final <i>portlet.xml</i> should look like:
+</p>
+<div class="source">
+<pre>
+&lt;portlet id=&quot;guessNumber&quot;&gt;
+        &lt;init-param&gt;
+            &lt;name&gt;ViewPage&lt;/name&gt;
+            &lt;value&gt;/greeting.jsp&lt;/value&gt;
+        &lt;/init-param&gt;
+        &lt;description&gt;JSF GuessNumber Portlet - Using J2 JSF 
Bridge&lt;/description&gt;
+        &lt;portlet-name&gt;guessNumber&lt;/portlet-name&gt;
+        &lt;display-name&gt;JSF GuessNumber Portlet - J2 JSF 
Bridge&lt;/display-name&gt;
+        
&lt;portlet-class&gt;org.apache.portals.bridges.jsf.FacesPortlet&lt;/portlet-class&gt;
+
+        &lt;supports&gt;
+            &lt;mime-type&gt;text/html&lt;/mime-type&gt;
+            &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
+            &lt;portlet-mode&gt;EDIT&lt;/portlet-mode&gt;
+            &lt;portlet-mode&gt;HELP&lt;/portlet-mode&gt;
+        &lt;/supports&gt;
+
+        &lt;portlet-info&gt;
+            &lt;title&gt;GuessNumber Portlet&lt;/title&gt;
+            &lt;short-title&gt;guessNumber&lt;/short-title&gt;
+        &lt;/portlet-info&gt;
+&lt;/portlet&gt;
+</pre></div>
 
+</div>
 
 
-
-
-
-
-
-
-
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-  <head>
-    <title>Apache Portals Bridges - Jetspeed MyFaces Demo Portlet 
Configuration</title>
-    <style type="text/css" media="all">
-      @import url("../css/maven-base.css");
-      @import url("../css/maven-theme.css");
-      @import url("../css/site.css");
-    </style>
-    <link rel="stylesheet" href="../css/print.css" type="text/css" 
media="print" />
-        <meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1" />
-      </head>
-  <body class="composite">
-    <div id="banner">
-                  <a href="http://portals.apache.org/"; id="bannerLeft">
-    
-                                            <img 
src="../images/apache-portals.gif" alt="" />
-    
-            </a>
-                        <a href="http://portals.apache.org/bridges/"; 
id="bannerRight">
-    
-            Apache Portals Bridges
-    
-            </a>
-            <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="breadcrumbs">
-          
-  
-
-  
-    
-  
-  
-    
-            <div class="xleft">
-        Last Published: 29 September 2011
-                      </div>
-            <div class="xright">            <a 
href="http://portals.apache.org/"; class="externalLink">Portals</a>
-            |
-                <a href="http://portals.apache.org/applications"; 
class="externalLink">Applications</a>
-            |
-                <a href="http://portals.apache.org/jetspeed-2"; 
class="externalLink">Jetspeed-2</a>
-            |
-                <a href="http://www.jcp.org/en/jsr/detail?id=168"; 
class="externalLink">JSR-168</a>
-            |
-                <a href="http://www.jcp.org/en/jsr/detail?id=286"; 
class="externalLink">JSR-286</a>
-            
-  
-
-  
-    
-  
-  
-    
-  </div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="leftColumn">
-      <div id="navcolumn">
-           
-  
-
-  
-    
-  
-  
-    
-                   <h5>Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../index.html">Overview</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../news.html">News and Status</a>
-          </li>
-          </ul>
-              <h5>Current Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../bridges-common/index.html">Common Utilities 
and Interfaces</a>
-          </li>
-              
-                
-              
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-struts/index.html">Struts Bridge</a>
-                </li>
-              
-    <li class="none">
-                    <a href="../bridges-velocity/index.html">Velocity 
Bridge</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../bridges-script/index.html">Script Bridge</a>
-          </li>
-              
-                
-              
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-groovy/index.html">Groovy Bridge</a>
-                </li>
-          </ul>
-              <h5>Archived Portals Bridges</h5>
-            <ul>
-              
-                
-              
-      
-            
-            
-              
-            <li class="expanded">
-                    <a href="../bridges-jsf/index.html">JSF Bridge</a>
-                  <ul>
-                  
-    <li class="none">
-                    <a href="../bridges-jsf/guide.html">Guide</a>
-          </li>
-                  
-    <li class="none">
-              <strong>MyFaces Demo</strong>
-        </li>
-              </ul>
-        </li>
-              
-                
-              
-      
-            
-      
-            
-      
-              
-        <li class="collapsed">
-                    <a href="../bridges-php/index.html">PHP Bridge</a>
-                </li>
-              
-    <li class="none">
-                    <a href="../bridges-perl/index.html">Perl Bridge</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../bridges-portletfilter/index.html">Portlet 
Filter</a>
-          </li>
-          </ul>
-              <h5>Get Portals Bridges</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../download.html">Download</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../release-notes.html">Release Notes</a>
-          </li>
-          </ul>
-              <h5>Support</h5>
-            <ul>
-              
-    <li class="none">
-                    <a href="../team-list.html">Project Team</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../license.html">Project License</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../mail-lists.html">Mailing List</a>
-          </li>
-              
-    <li class="none">
-                    <a href="../issue-tracking.html">Issue Tracking</a>
-          </li>
-          </ul>
-                                           <a href="http://maven.apache.org/"; 
title="Built by Maven" class="poweredBy">
-            <img alt="Built by Maven" 
src="../images/logos/maven-feather.png"></img>
-          </a>
-                       
-  
-
-  
-    
-  
-  
-    
-        </div>
-    </div>
-    <div id="bodyColumn">
-      <div id="contentBox">
-        <subtitle></subtitle><authors><person name="David Le Strat" 
email="[email protected]"></authors><div class="section"><h2><a 
name="Introduction"></a>Introduction</h2>
-<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>
-</div>
-<div class="section"><h2><a 
name="Configuration_MyFaces_as_a_Portlet"></a>Configuration MyFaces as a 
Portlet</h2>
-<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:
-<div class="source"><pre>
-&lt;init-param&gt;
-    &lt;name&gt;ViewPage&lt;/name&gt;
-    &lt;value&gt;/greeting.jsp&lt;/value&gt;
-&lt;/init-param&gt;
-</pre>
-</div>
-</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:
-<div class="source"><pre>
-&lt;portlet-class&gt;org.apache.portals.bridges.jsf.FacesPortlet&lt;/portlet-class&gt;
-</pre>
-</div>
-</p>
-<p>
-This final <i>portlet.xml</i> should look like:
-<div class="source"><pre>
-&lt;portlet id=&quot;guessNumber&quot;&gt;
-        &lt;init-param&gt;
-            &lt;name&gt;ViewPage&lt;/name&gt;
-            &lt;value&gt;/greeting.jsp&lt;/value&gt;
-        &lt;/init-param&gt;
-        &lt;description&gt;JSF GuessNumber Portlet - Using J2 JSF 
Bridge&lt;/description&gt;
-        &lt;portlet-name&gt;guessNumber&lt;/portlet-name&gt;
-        &lt;display-name&gt;JSF GuessNumber Portlet - J2 JSF 
Bridge&lt;/display-name&gt;
-        
&lt;portlet-class&gt;org.apache.portals.bridges.jsf.FacesPortlet&lt;/portlet-class&gt;
 
-        &lt;supports&gt;
-            &lt;mime-type&gt;text/html&lt;/mime-type&gt;
-            &lt;portlet-mode&gt;VIEW&lt;/portlet-mode&gt;
-            &lt;portlet-mode&gt;EDIT&lt;/portlet-mode&gt;
-            &lt;portlet-mode&gt;HELP&lt;/portlet-mode&gt;
-        &lt;/supports&gt;
-
-        &lt;portlet-info&gt;
-            &lt;title&gt;GuessNumber Portlet&lt;/title&gt;
-            &lt;short-title&gt;guessNumber&lt;/short-title&gt;
-        &lt;/portlet-info&gt;
-&lt;/portlet&gt;
-</pre>
-</div>
-</p>
-</div>
-
-      </div>
-    </div>
-    <div class="clear">
-      <hr/>
-    </div>
-    <div id="footer">
-      <div class="xright">&#169;  
-          2004-2011
-    
-          Apache Software Foundation
-          
-  
-
-  
-    
-  
-  
-    
-  </div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-  </body>
-</html>
+      </div>
+    </div>
+    <div class="clear">
+      <hr/>
+    </div>
+    <div id="footer">
+      <div class="xright">
+              Copyright &#169;                    2004-2022
+                        <a href="http://www.apache.org/";>Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+                  </div>
+      <div class="clear">
+        <hr/>
+      </div>
+    </div>
+  </body>
+</html>


Reply via email to