Author: taylor
Date: Mon Feb 23 23:31:43 2009
New Revision: 747207

URL: http://svn.apache.org/viewvc?rev=747207&view=rev
Log:
eoln

Added:
    
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/eclipse.xml
   (with props)
    
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/hello.xml
   (with props)
    
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/taglib.xml
   (with props)
    
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/velocity.xml
   (with props)
Modified:
    
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/overview.xml
    
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/tutorial-psml.xml

Added: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/eclipse.xml
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/eclipse.xml?rev=747207&view=auto
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/eclipse.xml
 (added)
+++ 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/eclipse.xml
 Mon Feb 23 23:31:43 2009
@@ -0,0 +1,104 @@
+<?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>Eclipse Integration</title>
+               <subtitle>Eclipse Integration</subtitle>
+               <authors>
+                       <person name="David Sean Taylor" 
email="[email protected]" />
+                       <person name="David Dyer"
+                               email="[email protected]" />
+                       <person name="Ron Wheeler"
+                               email="[email protected]" />
+               </authors>
+       </properties>
+       <body>
+               <section name="Eclipse Integration">
+                       <p>
+                               Before getting started, lets get Eclipse setup. 
Lets
+                               create a Eclipse project for the jetexpress 
project.
+                               Maven-2 can create Eclipse project and 
classpath files
+                               from your Maven-2 project POM, automatically 
bringing in
+                               all dependencies:
+                       </p>
+                       <source>
+                               <![CDATA[
+# Linux         
+cd /JetspeedTraining/workspace/jetexpress
+mvn eclipse:eclipse
+cp portal/.classpath .
+cp portal/.project .
+# Windows
+cd \JetspeedTraining\workspace\jetexpress
+mvn eclipse:eclipse
+copy portal\.classpath .
+copy portal\.project .
+     ]]>
+                       </source>
+                       <p>
+                               Lets do the same for the
+                               <i>express-demo</i>
+                               portlet application. You may prefer to actually 
create a
+                               new Eclipse project to represent the portlet app
+                               subproject. We recommend this, since Eclipse 
doesn't
+                               work very well multi-Maven projects. Best to 
break them
+                               out into one Maven project == one Eclipse 
project:
+                       </p>
+                       <source>
+                               <![CDATA[
+# Linux         
+cd /JetspeedTraining/workspace/jetexpress/applications/express-demo
+mvn eclipse:eclipse
+# Windows
+cd \JetspeedTraining\workspace\jetexpress\applications\express-demo
+mvn eclipse:eclipse
+     ]]>
+                       </source>
+                       <p>
+                               Now lets import these new projects. From the 
eclipse
+                               menu, select File->Import:
+                       </p>
+                       <img src="../images/import-project.png" />
+                       <img src="../images/import-project2.png" />
+                       <p>
+                               Repeat for both the applications/express-demo 
project.
+                       </p>
+                       <p>
+                               Next, lets setup a classpath variable to point 
at the
+                               Maven Repo, effectively resolving the jars for 
Eclipse.
+                               In Eclipse, go to 
Window->Preferences->Java->Build
+                               Path->Classpath Variables->New...:
+                       </p>
+                       <img src="../images/eclipse-classpath.png" />
+                       <p>
+                               If you would like to work with the Jetspeed 
source from
+                               the SVN Trunk, you will need to install the 
Subversion
+                               Plugin for Eclipse. After doing so, simply 
check out the
+                               project using the Subversion plugin:
+                       </p>
+                       <img src="../images/svn1.png" />
+                       <img src="../images/svn2.png" />
+                       <img src="../images/svn3.png" />
+                       <p>We are now ready to start developing with 
Eclipse.</p>
+                       <p>
+                               <a href='overview.html'>Previous</a>
+                               <a href='hello.html'>Next</a>
+                       </p>
+               </section>
+       </body>
+</document>
\ No newline at end of file

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/eclipse.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/eclipse.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/hello.xml
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/hello.xml?rev=747207&view=auto
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/hello.xml
 (added)
+++ 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/hello.xml
 Mon Feb 23 23:31:43 2009
@@ -0,0 +1,105 @@
+<?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>Hello World</title>
+               <subtitle>Hello World Portlet</subtitle>
+               <authors>
+                       <person name="David Sean Taylor" 
email="[email protected]" />
+                       <person name="David Dyer"
+                               email="[email protected]" />
+                       <person name="Ron Wheeler"
+                               email="[email protected]" />
+               </authors>
+       </properties>
+       <body>
+               <section name="Hello World Portlet">
+                       <p>
+                               We are going to create a portlet using the 
Eclipse Java
+                               perspective. Go to the
+                               <i>express-demo</i>
+                               project, click on the
+                               <i>com.bluesunrise.portal.portlets.tutorial</i>
+                               package, and create a new Java class:
+                       </p>
+                       <img src="../images/new-portlet.png" />
+                       <p>
+                               You will see a new portlet in Eclipse named
+                               BonjourWorld. Go ahead Override and Implement 
the
+                               following methods:
+                       </p>
+                       <img src="../images/override-impl.png" />
+                       <p>
+                               Each one of these methods is associated with a 
portlet
+                               mode. Lets make these methods actually do 
something.
+                               Since we are in the render phase when
+                               doView/doEdit/doHelp are called, its probably 
best to
+                               render something. The RenderResponse renders 
content to
+                               the output stream of the portlet. Set the 
content type
+                               on the response, and then print a
+                               <i>hello world</i>
+                               message using a Java Writer:
+                       </p>
+                       <source>
+                               <![CDATA[
+    protected void doView(RenderRequest request, RenderResponse response) 
throws PortletException, IOException
+    {
+        response.setContentType("text/html"); 
+        response.getWriter().println("<b>Bonjour: View Mode</b>");
+    }
+            ]]>
+                       </source>
+                       <p>
+                               Repeat the same process for Edit and Help 
modes. Now
+                               lets edit the portlet.xml, and create a portlet
+                               descriptor entry for our portlet. Notice that 
the
+                               &lt;supports&gt; element contains that same 
portlet
+                               modes that we support in our
+                               <i>do</i>
+                               methods.
+                       </p>
+                       <source>
+                               <![CDATA[
+    <portlet>
+        <description>Bonjour Monde Portlet</description>               
+        <portlet-name>BonjourMonde</portlet-name>      
+        <display-name>Bonjour Monde</display-name>
+        
<portlet-class>com.bluesunrise.portal.portlets.tutorial.BonjourWorld</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>
+        <supported-locale>en</supported-locale>        
+           <portlet-info>
+        <title>Bonjour Monde</title>
+          <short-title>Bonjour</short-title>
+          <keywords>tutorial,bonjour,hello</keywords>
+       </portlet-info>
+       </portlet>       
+            ]]>
+                       </source>
+                       <p>
+                               <a href='overview.html'>Previous</a>
+                               <a href='tutorial-psml.html'>Next</a>
+                       </p>
+               </section>
+       </body>
+</document>
+

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/hello.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/hello.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/overview.xml
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/overview.xml?rev=747207&r1=747206&r2=747207&view=diff
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/overview.xml
 (original)
+++ 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/overview.xml
 Mon Feb 23 23:31:43 2009
@@ -1,65 +1,65 @@
-<?xml version="1.0"?>
-<!--
+<?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>Portlet 101</title>
-               <subtitle>Portlet Development 101</subtitle>
-               <authors>
-                       <person name="David Sean Taylor" 
email="[email protected]" />
-                       <person name="David Dyer"
-                               email="[email protected]" />
-                       <person name="Ron Wheeler"
-                               email="[email protected]" />
-               </authors>
-       </properties>
-       <body>
-               <section name="Portlet Development with the Portlet API">
-                       <p>
-                               This section of the tutorial covers Portlet 
Development
-                               with the Java Portlet API.
-                       </p>
-                       <p>
-                               <ul>
-                                       <li>Getting started with Eclipse</li>
-                                       <li>
-                                               Bonjour Monde Portlet: the 
staple Hello World
-                                               demo to get things rolling 
introduces the
-                                               portlet.xml, as well as basic 
Portlet API
-                                               concepts.
-                                       </li>
-                                       <li>
-                                               The Weather Portlet: using init 
parameters,
-                                               preferences, and request 
parameters
-                                       </li>
-                                       <li>
-                                               The Stock Quote Portlet: 
actions, JSP, Portlet
-                                               API Tag Library
-                                       </li>
-                                       <li>
-                                               Interportlet communication, 
more advanced
-                                               Portlet programming.
-                                       </li>
-                               </ul>
-                       </p>
-                       <p>
-                               <a href='../03/pages.html'>Previous</a>
-                               <a href='eclipse.html'>Next</a>
-                       </p>
-               </section>
-       </body>
+       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>Portlet 101</title>
+               <subtitle>Portlet Development 101</subtitle>
+               <authors>
+                       <person name="David Sean Taylor" 
email="[email protected]" />
+                       <person name="David Dyer"
+                               email="[email protected]" />
+                       <person name="Ron Wheeler"
+                               email="[email protected]" />
+               </authors>
+       </properties>
+       <body>
+               <section name="Portlet Development with the Portlet API">
+                       <p>
+                               This section of the tutorial covers Portlet 
Development
+                               with the Java Portlet API.
+                       </p>
+                       <p>
+                               <ul>
+                                       <li>Getting started with Eclipse</li>
+                                       <li>
+                                               Bonjour Monde Portlet: the 
staple Hello World
+                                               demo to get things rolling 
introduces the
+                                               portlet.xml, as well as basic 
Portlet API
+                                               concepts.
+                                       </li>
+                                       <li>
+                                               The Weather Portlet: using init 
parameters,
+                                               preferences, and request 
parameters
+                                       </li>
+                                       <li>
+                                               The Stock Quote Portlet: 
actions, JSP, Portlet
+                                               API Tag Library
+                                       </li>
+                                       <li>
+                                               Interportlet communication, 
more advanced
+                                               Portlet programming.
+                                       </li>
+                               </ul>
+                       </p>
+                       <p>
+                               <a href='../03/pages.html'>Previous</a>
+                               <a href='eclipse.html'>Next</a>
+                       </p>
+               </section>
+       </body>
 </document>
\ No newline at end of file

Added: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/taglib.xml
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/taglib.xml?rev=747207&view=auto
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/taglib.xml
 (added)
+++ 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/taglib.xml
 Mon Feb 23 23:31:43 2009
@@ -0,0 +1,194 @@
+<?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>Taglibs</title>
+               <subtitle>Portlet API Taglib</subtitle>
+               <authors>
+                       <person name="David Sean Taylor" 
email="[email protected]" />
+                       <person name="David Dyer"
+                               email="[email protected]" />
+                       <person name="Ron Wheeler"
+                               email="[email protected]" />
+               </authors>
+       </properties>
+       <body>
+               <section name="JSP and Portlet API Taglib">
+                       <p>
+                               Lets create another portlet. This portlet will 
not have
+                               a Java class. Instead it will be written 
entirely in
+                               JSP. Note that you can mix JSP and a Java class 
for the
+                               implementation of your Java class as you will 
see in the
+                               Stock Quote portlet example. Go to the
+                               <i>express-demo</i>
+                               project, click on the
+                               <i>src/webapp/WEB-INF/view/</i>
+                               directory, and create a JSP file named
+                               <b>tutorial.jsp</b>
+                               . Enter the following JSP code:
+                       </p>
+                       <source>
+                               <![CDATA[
+<%@ page session="true" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
+<%@ taglib uri="http://java.sun.com/jstl/core"; prefix='c' %> 
+
+<portlet:defineObjects/>
+
+<portlet:renderURL var="max" windowState='maximized'/>
+<portlet:renderURL var="normal" windowState='normal'/>
+<c:out value="${renderRequest.windowState}"/>
+<c:if test="${renderRequest.windowState == 'maximized'}">
+<a href='<%=normal%>'>Normal</a>
+</c:if>
+<c:if test="${renderRequest.windowState == 'normal'}">
+<a href='<%=max%>'>Max</a>
+</c:if>
+            ]]>
+                       </source>
+                       <p>
+                               Every portlet JSP page is required to have the
+                               <b>defineObjects</b>
+                               tag at the top. Of course you also need the TLD
+                               reference. Portlets need to write their links 
to go back
+                               to the portal, not back to each individual 
servlet or
+                               JSP. That is the main difference between writing
+                               portlets and servlets. If you are using a 
framework like
+                               Struts or JSF correctly, these details should 
be hidden
+                               from you in the framework. The tag that we are 
using
+                               here is the
+                               <b>&lt;portlet:renderURL&gt;</b>
+                               . It allows you to create a render phase link 
back to
+                               this portlet, going through the portal. You can 
set
+                               window states, request parameters, and portlet 
mode
+                               changes on the URL. The other kind of link that 
you can
+                               create is an action URL:
+                               <b>&lt;portlet:actionURL&gt;</b>
+                               , which is usually used with a HTML form to 
post back
+                               parameters to the portlet and initial a 
blocking action
+                               phase event for the targeted portlet. The
+                               <b>&lt;portlet:defineObjects&gt;</b>
+                               tag declares three variables for your page:
+                               <table>
+                                       <tr>
+                                               <th>JSP variable</th>
+                                               <th>Description</th>
+                                       </tr>
+                                       <tr>
+                                               <td>renderRequest</td>
+                                               <td>The RenderRequest 
object</td>
+                                       </tr>
+                                       <tr>
+                                               <td>renderResponse</td>
+                                               <td>The RenderResponse 
object</td>
+                                       </tr>
+                                       <tr>
+                                               <td>portletConfig</td>
+                                               <td>The PortletConfig 
object</td>
+                                       </tr>
+                               </table>
+                       </p>
+                       <p>
+                               Here is the portlet.xml for our JSP portlet. It 
is based
+                               on the
+                               <b>GenericServletPortlet</b>
+                               , provided by Portals Bridges in a jar file 
dependency.
+                               Notice the init-param named
+                               <b>ViewPage</b>
+                               . This param defines which webapp-relative JSP 
to use
+                               for View Mode. Similiarly we have are
+                               <b>EditPage</b>
+                               for edit mode, and
+                               <b>HelpPage</b>
+                               for help mode.
+                       </p>
+                       <source>
+                               <![CDATA[
+ <portlet>   
+    <description>The 2nd Tutorial with JSP</description>               
+    <portlet-name>TutorialPortlet2</portlet-name>      
+    <display-name>Tutorial Portlet 2</display-name>
+    
<portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</portlet-class>
             
+    <init-param>
+        <name>ViewPage</name>
+        <value>/WEB-INF/view/tutorial.jsp</value>
+    </init-param>          
+    <init-param>
+        <name>EditPage</name>
+        <value>/WEB-INF/view/tutorial.jsp</value>
+    </init-param>          
+    <init-param>
+        <name>HelpPage</name>
+        <value>/WEB-INF/view/tutorial.jsp</value>
+    </init-param>              
+    <supports>
+        <mime-type>text/html</mime-type>
+        <portlet-mode>VIEW</portlet-mode>
+        <portlet-mode>EDIT</portlet-mode>        
+        <portlet-mode>HELP</portlet-mode>                
+    </supports>
+    <supported-locale>en</supported-locale>            
+       <portlet-info>
+        <title>Tutorial Portlet</title>
+        <short-title>tutorial</short-title>
+               <keywords>tutorial,hello,JSP,taglib</keywords>
+    </portlet-info>
+    <portlet-preferences>
+        <preference>                            
+            <name>test</name>                    
+            <value>hello</value>    
+        </preference>         
+    </portlet-preferences>                                     
+</portlet>      
+            ]]>
+                       </source>
+                       <p>
+                               Add this portlet window fragment to the 
tutorial default
+                               page, underneath the BonjourMonde fragment:
+                       </p>
+                       <source>
+                               <![CDATA[
+         <fragment id="express-102" type="portlet" 
name="express-demo::TutorialPortlet2"/>
+     ]]>
+                       </source>
+                       <p>And then deploy your changes:</p>
+                       <source>
+                               <![CDATA[
+# Linux         
+cd /JetspeedTraining/workspace/jetexpress/
+ant
+cd applications/express-demo
+mvn 
+cp target/express-demo-1.0.war 
/JetspeedTraining/tomcat-express/webapps/express-demo.war
+
+# Windows
+cd \JetspeedTraining\workspace\jetexpress
+ant
+cd applications\express-demo
+mvn 
+copy target\express-demo-1.0.war 
\JetspeedTraining\tomcat-express\webapps\express-demo.war
+     ]]>
+                       </source>
+                       <p>
+                               <a href='hello.html'>Previous</a>
+                               <a href='../05/jetspeed-service.html'>Next</a>
+                       </p>
+               </section>
+       </body>
+</document>
+

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/taglib.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/taglib.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/tutorial-psml.xml
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/tutorial-psml.xml?rev=747207&r1=747206&r2=747207&view=diff
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/tutorial-psml.xml
 (original)
+++ 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/tutorial-psml.xml
 Mon Feb 23 23:31:43 2009
@@ -1,97 +1,97 @@
-<?xml version="1.0"?>
-<!--
+<?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>Adding a Page for the Tutorial Portlets</title>
-               <subtitle>Adding a Page for the Tutorial Portlets</subtitle>
-               <authors>
-                       <person name="David Sean Taylor" 
email="[email protected]" />
-                       <person name="David Dyer"
-                               email="[email protected]" />
-                       <person name="Ron Wheeler"
-                               email="[email protected]" />
-               </authors>
-       </properties>
-       <body>
-               <section name="Adding a Page for the Tutorial Portlets">
-                       <p>
-                               Now that we've created a new portlet, lets add 
a page to
-                               hold that portlet. In the
-                               <b>jetexpress</b>
-                               project, lets add a folder to the root of our 
site named
-                               <i>portal/src/webapp/WEB-INF/pages/tutorial/</i>
-                               .
-                       </p>
-                       <source>
-                               <![CDATA[       
-<?xml version="1.0" encoding="UTF-8"?>
-<folder>
-  <title >Tutorial</title>  
-  <metadata name="title" xml:lang="fr">Autodidacte</metadata>
-
-  <security-constraints>
-    <security-constraints-ref>public-edit</security-constraints-ref>
-  </security-constraints>
-</folder>       
-            ]]>
-                       </source>
-                       <p>
-                               Then lets add a new page named
-                               <b>default-page.psml</b>
-                               under the tutorial directory. Add a portlet 
window to
-                               reference our new portlet:
-                       </p>
-                       <source>
-                               <![CDATA[
-<page>
-  <defaults layout-decorator="express-page" 
-            portlet-decorator="express-portlet"
-            skin="express"/>
-  <title>JetExpress Tutorials</title>
-  <short-title>Tutorials</short-title>
-  <fragment id="tutorial-100" type="layout" 
name="jetspeed-layouts::VelocityTwoColumns">  
-         <fragment id="express-101" type="portlet" 
name="express-demo::BonjourMonde"/>
-  </fragment>
-</page>         
-            ]]>
-                       </source>
-                       <p>Lets deploy our portlet and the new pages:</p>
-                       <source>
-                               <![CDATA[
-# Linux         
-cd /JetspeedTraining/workspace/jetexpress
-ant
-cd applications/express-demo
-mvn 
-cp target/express-demo-1.0.war 
/JetspeedTraining/tomcat-express/webapps/express-demo.war
-
-# Windows
-cd \JetspeedTraining\workspace\jetexpress
-ant
-cd applications\express-demo
-mvn 
-copy target\express-demo-1.0.war 
\JetspeedTraining\tomcat-express\webapps\express-demo.war
-            ]]>
-                       </source>
-                       <p>
-                               <a href='hello.html'>Previous</a>
-                               <a href='taglib.html'>Next</a>
-                       </p>
-               </section>
-       </body>
-</document>
+  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>Adding a Page for the Tutorial Portlets</title>
+               <subtitle>Adding a Page for the Tutorial Portlets</subtitle>
+               <authors>
+                       <person name="David Sean Taylor" 
email="[email protected]" />
+                       <person name="David Dyer"
+                               email="[email protected]" />
+                       <person name="Ron Wheeler"
+                               email="[email protected]" />
+               </authors>
+       </properties>
+       <body>
+               <section name="Adding a Page for the Tutorial Portlets">
+                       <p>
+                               Now that we've created a new portlet, lets add 
a page to
+                               hold that portlet. In the
+                               <b>jetexpress</b>
+                               project, lets add a folder to the root of our 
site named
+                               <i>portal/src/webapp/WEB-INF/pages/tutorial/</i>
+                               .
+                       </p>
+                       <source>
+                               <![CDATA[       
+<?xml version="1.0" encoding="UTF-8"?>
+<folder>
+  <title >Tutorial</title>  
+  <metadata name="title" xml:lang="fr">Autodidacte</metadata>
+
+  <security-constraints>
+    <security-constraints-ref>public-edit</security-constraints-ref>
+  </security-constraints>
+</folder>       
+            ]]>
+                       </source>
+                       <p>
+                               Then lets add a new page named
+                               <b>default-page.psml</b>
+                               under the tutorial directory. Add a portlet 
window to
+                               reference our new portlet:
+                       </p>
+                       <source>
+                               <![CDATA[
+<page>
+  <defaults layout-decorator="express-page" 
+            portlet-decorator="express-portlet"
+            skin="express"/>
+  <title>JetExpress Tutorials</title>
+  <short-title>Tutorials</short-title>
+  <fragment id="tutorial-100" type="layout" 
name="jetspeed-layouts::VelocityTwoColumns">  
+         <fragment id="express-101" type="portlet" 
name="express-demo::BonjourMonde"/>
+  </fragment>
+</page>         
+            ]]>
+                       </source>
+                       <p>Lets deploy our portlet and the new pages:</p>
+                       <source>
+                               <![CDATA[
+# Linux         
+cd /JetspeedTraining/workspace/jetexpress
+ant
+cd applications/express-demo
+mvn 
+cp target/express-demo-1.0.war 
/JetspeedTraining/tomcat-express/webapps/express-demo.war
+
+# Windows
+cd \JetspeedTraining\workspace\jetexpress
+ant
+cd applications\express-demo
+mvn 
+copy target\express-demo-1.0.war 
\JetspeedTraining\tomcat-express\webapps\express-demo.war
+            ]]>
+                       </source>
+                       <p>
+                               <a href='hello.html'>Previous</a>
+                               <a href='taglib.html'>Next</a>
+                       </p>
+               </section>
+       </body>
+</document>

Added: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/velocity.xml
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/velocity.xml?rev=747207&view=auto
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/velocity.xml
 (added)
+++ 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/velocity.xml
 Mon Feb 23 23:31:43 2009
@@ -0,0 +1,38 @@
+<?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>Portlet 101</title>
+               <subtitle>Velocity</subtitle>
+               <authors>
+                       <person name="David Sean Taylor" 
email="[email protected]" />
+                       <person name="David Dyer"
+                               email="[email protected]" />
+                       <person name="Ron Wheeler"
+                               email="[email protected]" />
+               </authors>
+       </properties>
+       <body>
+               <section name="Velocity Overview">
+                       <p>
+                               <a href="velocity.apache.org">Velocity</a> is a 
Java-based template engine. 
+                               It permits anyone to use a simple yet powerful 
template language to reference objects defined in Java code.
+                       </p>
+               </section>
+       </body>
+</document>
\ No newline at end of file

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/velocity.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.3-POSTRELEASE/xdocs/tutorials/ant/04/velocity.xml
------------------------------------------------------------------------------
    svn:keywords = Id



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to