You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@portals.apache.org by at...@apache.org on 2012/12/16 20:04:53 UTC
svn commit: r1422668 [11/19] - in /portals/site-live/jetspeed-1: channels/
channels/CVS/ images/ images/logos/ images/uml/ plugin/ plugin/images/
plugin/images/logos/ plugin/style/ skins/jetspeed/ skins/jetspeed/graphics/
skins/jetspeed/resources/ skin...
Added: portals/site-live/jetspeed-1/tutorial/5/helloworld.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-1/tutorial/5/helloworld.html?rev=1422668&view=auto
==============================================================================
--- portals/site-live/jetspeed-1/tutorial/5/helloworld.html (added)
+++ portals/site-live/jetspeed-1/tutorial/5/helloworld.html Sun Dec 16 19:04:16 2012
@@ -0,0 +1,54 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Jetspeed Portal Tutorial - Hello World Portlet</title><style type="text/css" media="all">
+ @import url("../style/maven-base.css");
+
+ @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="David Sean Taylor"></meta><meta name="email" content="taylor@apache.org"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="../images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-1/tutorial/" id="projectLogo"><img alt="Jetspeed Portal Tutorial" src="../images/jportal.gif"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 26 May 2005
+ </div><div class="xright">
+
+ <a href="../index.html">Home</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-1/" class="externalLink" title="External Link">Jetspeed-1</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">Jetspeed-2</a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><a href="http://ApacheCon.Com/2005/EU/"><img src="http://apache.org/images/ac2005eu_135x50.gif" width="135" height="50" alt="ApacheCon!" title="Come to ApacheCon!" border="0" /></a><div id="menuGetting_Started:_Install_and_Build"><h5>Getting Started: Install and Build</h5><ul><li class="none"><a href="../index.html">Welcome</a></li><li class="none"><a href="../prerequisites.html">Prerequisites</a></li><li class="none"><a href="../downloading.html">Downloading Jetspeed</a></li><li class="none"><a href="../developing.html">The Jetspeed Plugin</a></li><li class="none"><a href="../planning.html">Planning for Your Portal Site</a></li><li class="none"><a href="../portlet-api.html">The Jetspeed Portlet API</a></li></ul></div><div id="menu1__The_Portal_Web_Design"><h5>1. The Portal Web Design</h5><ul><li class="none"><a href="../1/index.html">Intro</a></li><li class="none"><a href="../1/logo
.html">Change the Portal Logo</a></li><li class="none"><a href="../1/topnav.html">Modify the Top Navigation</a></li><li class="none"><a href="../1/leftnav.html">Remove the Left Navigation</a></li><li class="none"><a href="../1/bottomnav.html">Replace the Bottom Navigation</a></li><li class="none"><a href="../1/skins.html">Change the Skin and CSS</a></li><li class="none"><a href="../1/deploy.html">Deploy</a></li></ul></div><div id="menu2__Localisation"><h5>2. Localisation</h5><ul><li class="none"><a href="../2/index.html">Intro</a></li><li class="none"><a href="../2/bundles.html">Java Resource Bundles</a></li><li class="none"><a href="../2/modules.html">Modules and Bundles</a></li><li class="none"><a href="../2/psml.html">Localisation of PSML Resources</a></li><li class="none"><a href="../2/deploy.html">Deploy</a></li></ul></div><div id="menu3__Site_Map"><h5>3. Site Map</h5><ul><li class="none"><a href="../3/index.html">Intro</a></li><li class="none"><a href="../3/anonymous.h
tml">Anonymous User</a></li><li class="none"><a href="../3/navigations.html">PSML Navigation</a></li><li class="none"><a href="../3/references.html">PSML References</a></li><li class="none"><a href="../3/authenticated.html">Authenticated User</a></li><li class="none"><a href="../3/layout.html">Layout Components</a></li><li class="none"><a href="../3/menus.html">Customizing Menus</a></li><li class="none"><a href="../3/panes.html">Customizing Panes</a></li><li class="none"><a href="../3/deploy.html">Deploy</a></li></ul></div><div id="menu4__Site_Security"><h5>4. Site Security</h5><ul><li class="none"><a href="../4/index.html">Intro</a></li><li class="none"><a href="../4/concepts.html">Security Concepts</a></li><li class="none"><a href="../4/users-roles.html">Managing Users and Roles</a></li><li class="none"><a href="../4/features.html">Security Features</a></li><li class="none"><a href="../4/customizer.html">Customizer and Security</a></li><li class="none"><a href="../4/exampl
e.html">Security Example</a></li><li class="none"><a href="../4/deploy.html">Deploy</a></li></ul></div><div id="menu5__Portlet_101"><h5>5. Portlet 101</h5><ul><li class="none"><a href="../5/index.html">Intro</a></li><li class="none"><strong><a href="../5/helloworld.html">Hello World Portlet</a></strong></li><li class="none"><a href="../5/registry.html">Adding Portlet to Registry</a></li><li class="none"><a href="../5/page.html">Adding Portlet to Page</a></li><li class="none"><a href="../5/hellouser.html">Hello User Portlet</a></li><li class="none"><a href="../5/deploy.html">Deploy</a></li></ul></div><div id="menu6__The_Portlet_Inteface"><h5>6. The Portlet Inteface</h5><ul><li class="none"><a href="../6/index.html">Intro</a></li><li class="none"><a href="../6/mediatypes.html">Media Types</a></li><li class="none"><a href="../6/lifecycle.html">Portlet Lifecycle</a></li><li class="none"><a href="../6/initparams.html">Init Parameters, Titles</a></li><li class="none"><a href="../6
/modes.html">Portlet Modes</a></li><li class="none"><a href="../6/deploy.html">Deploy</a></li></ul></div><div id="menu7__Velocity_Portlet"><h5>7. Velocity Portlet</h5><ul><li class="none"><a href="../7/index.html">Intro</a></li><li class="none"><a href="../7/velocity.html">Velocity Overview</a></li><li class="none"><a href="../7/registry.html">Registry Configuration</a></li><li class="none"><a href="../7/velocitytemplate.html">The Velocity Template</a></li><li class="none"><a href="../7/resolution.html">Template Resolution</a></li><li class="none"><a href="../7/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../7/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../7/events.html">Action Events</a></li><li class="none"><a href="../7/deploy.html">Deploy</a></li></ul></div><div id="menu8__JSP_Portlet"><h5>8. JSP Portlet</h5><ul><li class="none"><a href="../8/index.html">Intro</a></li><li class="none"><a href="../
8/jsp.html">JSP Overview</a></li><li class="none"><a href="../8/registry.html">Registry Configuration</a></li><li class="none"><a href="../8/jsptemplate.html">The JSP Template</a></li><li class="none"><a href="../8/resolution.html">Template Resolution</a></li><li class="none"><a href="../8/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../8/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../8/events.html">Action Events</a></li><li class="none"><a href="../8/deploy.html">Deploy</a></li></ul></div><div id="menu9__Database_Browser_Portlet"><h5>9. Database Browser Portlet</h5><ul><li class="none"><a href="../9/index.html">Intro</a></li><li class="none"><a href="../9/registryconfig.html">Registry Configuration</a></li><li class="none"><a href="../9/actions.html">Linking to Actions</a></li><li class="none"><a href="../9/events.html">Action Events</a></li><li class="none"><a href="../9/advanced.html">Advanced Para
meters</a></li><li class="none"><a href="../9/deploy.html">Deploy</a></li></ul></div><div id="menu10__XSLT_Portlet"><h5>10. XSLT Portlet</h5><ul><li class="none"><a href="../10/index.html">Intro</a></li><li class="none"><a href="../10/xsltregistryconfig.html">Registry Configuration</a></li><li class="none"><a href="../10/xslttransform.html">Transforming</a></li><li class="none"><a href="../10/xsltdeploy.html">Deploy</a></li></ul></div><div id="menu11__RSS_Portlet"><h5>11. RSS Portlet</h5><ul><li class="none"><a href="../11/index.html">Intro</a></li></ul></div><div id="menu12__Parameter_Styles"><h5>12. Parameter Styles</h5><ul><li class="none"><a href="../12/index.html">Intro</a></li><li class="none"><a href="../12/paramstylearchitecture.html">Architecture</a></li></ul></div><div id="menu13__MVC_Portlet"><h5>13. MVC Portlet</h5><ul><li class="none"><a href="../13/mvcintro.html">Introduction to MVC Portlet</a></li><li class="none"><a href="../13/mvcportlets.html">MVC Portlets
in the Registry</a></li><li class="none"><a href="../13/mvctemplate.html">The Template</a></li></ul></div><div id="menuAppendices"><h5>Appendices</h5><ul><li class="none"><a href="../appendix/a.html">A. Property Merging</a></li><li class="none"><a href="../appendix/b.html">B. Turbine and ECS</a></li></ul></div></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Hello_World_Portlet"></a><h2>Hello World Portlet</h2><p>
+To start with, the very first portlet is the simplest, the obligatory "Hello World",
+it extends <a href="http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/portlets/AbstractInstancePortlet.html" class="externalLink" title="External Link">AbstractInstancePortlet</a>.
+All the code necessary is shown below:
+</p>
+ <div class="source"><pre>
+
+package org.apache.jetspeed.tutorial.portal.portlets;
+
+public class HelloWorldPortlet extends AbstractInstancePortlet
+{
+ public ConcreteElement getContent (RunData runData)
+ {
+ return (new StringElement ("Hello World! #" + getID()));
+ }
+}
+}
+</pre></div>
+ <p>
+When you have compiled this portlet and configured it into the portlet registry,
+the user can choose the portlet from the list of available portlets when customizing their home page.
+As you can see, the most important method to override is the <b>getContent()</b> method,
+which provides the content of your portlet to the response payload.
+We will cover this method in detail in the section on the <b>Portlet interface</b>.
+</p><p>
+In future chapters we will discover better methods for generating your content,
+using the set of MVC portlets provided with the Jetspeed distribution.
+See tutorials 7 onwards for examples these abstractions where it is not
+necessary to override the getContent method. For the purpose of learning the very
+basics of portlet operations, tutorials 5 and 6 will demonstrate how the
+getContent method works without any MVC abstraction.
+</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2005, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
Propchange: portals/site-live/jetspeed-1/tutorial/5/helloworld.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/jetspeed-1/tutorial/5/index.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-1/tutorial/5/index.html?rev=1422668&view=auto
==============================================================================
--- portals/site-live/jetspeed-1/tutorial/5/index.html (added)
+++ portals/site-live/jetspeed-1/tutorial/5/index.html Sun Dec 16 19:04:16 2012
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Jetspeed Portal Tutorial - Portlet 101</title><style type="text/css" media="all">
+ @import url("../style/maven-base.css");
+
+ @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="David Sean Taylor"></meta><meta name="email" content="taylor@apache.org"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="../images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-1/tutorial/" id="projectLogo"><img alt="Jetspeed Portal Tutorial" src="../images/jportal.gif"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 26 May 2005
+ </div><div class="xright">
+
+ <a href="../index.html">Home</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-1/" class="externalLink" title="External Link">Jetspeed-1</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">Jetspeed-2</a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><a href="http://ApacheCon.Com/2005/EU/"><img src="http://apache.org/images/ac2005eu_135x50.gif" width="135" height="50" alt="ApacheCon!" title="Come to ApacheCon!" border="0" /></a><div id="menuGetting_Started:_Install_and_Build"><h5>Getting Started: Install and Build</h5><ul><li class="none"><a href="../index.html">Welcome</a></li><li class="none"><a href="../prerequisites.html">Prerequisites</a></li><li class="none"><a href="../downloading.html">Downloading Jetspeed</a></li><li class="none"><a href="../developing.html">The Jetspeed Plugin</a></li><li class="none"><a href="../planning.html">Planning for Your Portal Site</a></li><li class="none"><a href="../portlet-api.html">The Jetspeed Portlet API</a></li></ul></div><div id="menu1__The_Portal_Web_Design"><h5>1. The Portal Web Design</h5><ul><li class="none"><a href="../1/index.html">Intro</a></li><li class="none"><a href="../1/logo
.html">Change the Portal Logo</a></li><li class="none"><a href="../1/topnav.html">Modify the Top Navigation</a></li><li class="none"><a href="../1/leftnav.html">Remove the Left Navigation</a></li><li class="none"><a href="../1/bottomnav.html">Replace the Bottom Navigation</a></li><li class="none"><a href="../1/skins.html">Change the Skin and CSS</a></li><li class="none"><a href="../1/deploy.html">Deploy</a></li></ul></div><div id="menu2__Localisation"><h5>2. Localisation</h5><ul><li class="none"><a href="../2/index.html">Intro</a></li><li class="none"><a href="../2/bundles.html">Java Resource Bundles</a></li><li class="none"><a href="../2/modules.html">Modules and Bundles</a></li><li class="none"><a href="../2/psml.html">Localisation of PSML Resources</a></li><li class="none"><a href="../2/deploy.html">Deploy</a></li></ul></div><div id="menu3__Site_Map"><h5>3. Site Map</h5><ul><li class="none"><a href="../3/index.html">Intro</a></li><li class="none"><a href="../3/anonymous.h
tml">Anonymous User</a></li><li class="none"><a href="../3/navigations.html">PSML Navigation</a></li><li class="none"><a href="../3/references.html">PSML References</a></li><li class="none"><a href="../3/authenticated.html">Authenticated User</a></li><li class="none"><a href="../3/layout.html">Layout Components</a></li><li class="none"><a href="../3/menus.html">Customizing Menus</a></li><li class="none"><a href="../3/panes.html">Customizing Panes</a></li><li class="none"><a href="../3/deploy.html">Deploy</a></li></ul></div><div id="menu4__Site_Security"><h5>4. Site Security</h5><ul><li class="none"><a href="../4/index.html">Intro</a></li><li class="none"><a href="../4/concepts.html">Security Concepts</a></li><li class="none"><a href="../4/users-roles.html">Managing Users and Roles</a></li><li class="none"><a href="../4/features.html">Security Features</a></li><li class="none"><a href="../4/customizer.html">Customizer and Security</a></li><li class="none"><a href="../4/exampl
e.html">Security Example</a></li><li class="none"><a href="../4/deploy.html">Deploy</a></li></ul></div><div id="menu5__Portlet_101"><h5>5. Portlet 101</h5><ul><li class="none"><strong><a href="../5/index.html">Intro</a></strong></li><li class="none"><a href="../5/helloworld.html">Hello World Portlet</a></li><li class="none"><a href="../5/registry.html">Adding Portlet to Registry</a></li><li class="none"><a href="../5/page.html">Adding Portlet to Page</a></li><li class="none"><a href="../5/hellouser.html">Hello User Portlet</a></li><li class="none"><a href="../5/deploy.html">Deploy</a></li></ul></div><div id="menu6__The_Portlet_Inteface"><h5>6. The Portlet Inteface</h5><ul><li class="none"><a href="../6/index.html">Intro</a></li><li class="none"><a href="../6/mediatypes.html">Media Types</a></li><li class="none"><a href="../6/lifecycle.html">Portlet Lifecycle</a></li><li class="none"><a href="../6/initparams.html">Init Parameters, Titles</a></li><li class="none"><a href="../6
/modes.html">Portlet Modes</a></li><li class="none"><a href="../6/deploy.html">Deploy</a></li></ul></div><div id="menu7__Velocity_Portlet"><h5>7. Velocity Portlet</h5><ul><li class="none"><a href="../7/index.html">Intro</a></li><li class="none"><a href="../7/velocity.html">Velocity Overview</a></li><li class="none"><a href="../7/registry.html">Registry Configuration</a></li><li class="none"><a href="../7/velocitytemplate.html">The Velocity Template</a></li><li class="none"><a href="../7/resolution.html">Template Resolution</a></li><li class="none"><a href="../7/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../7/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../7/events.html">Action Events</a></li><li class="none"><a href="../7/deploy.html">Deploy</a></li></ul></div><div id="menu8__JSP_Portlet"><h5>8. JSP Portlet</h5><ul><li class="none"><a href="../8/index.html">Intro</a></li><li class="none"><a href="../
8/jsp.html">JSP Overview</a></li><li class="none"><a href="../8/registry.html">Registry Configuration</a></li><li class="none"><a href="../8/jsptemplate.html">The JSP Template</a></li><li class="none"><a href="../8/resolution.html">Template Resolution</a></li><li class="none"><a href="../8/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../8/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../8/events.html">Action Events</a></li><li class="none"><a href="../8/deploy.html">Deploy</a></li></ul></div><div id="menu9__Database_Browser_Portlet"><h5>9. Database Browser Portlet</h5><ul><li class="none"><a href="../9/index.html">Intro</a></li><li class="none"><a href="../9/registryconfig.html">Registry Configuration</a></li><li class="none"><a href="../9/actions.html">Linking to Actions</a></li><li class="none"><a href="../9/events.html">Action Events</a></li><li class="none"><a href="../9/advanced.html">Advanced Para
meters</a></li><li class="none"><a href="../9/deploy.html">Deploy</a></li></ul></div><div id="menu10__XSLT_Portlet"><h5>10. XSLT Portlet</h5><ul><li class="none"><a href="../10/index.html">Intro</a></li><li class="none"><a href="../10/xsltregistryconfig.html">Registry Configuration</a></li><li class="none"><a href="../10/xslttransform.html">Transforming</a></li><li class="none"><a href="../10/xsltdeploy.html">Deploy</a></li></ul></div><div id="menu11__RSS_Portlet"><h5>11. RSS Portlet</h5><ul><li class="none"><a href="../11/index.html">Intro</a></li></ul></div><div id="menu12__Parameter_Styles"><h5>12. Parameter Styles</h5><ul><li class="none"><a href="../12/index.html">Intro</a></li><li class="none"><a href="../12/paramstylearchitecture.html">Architecture</a></li></ul></div><div id="menu13__MVC_Portlet"><h5>13. MVC Portlet</h5><ul><li class="none"><a href="../13/mvcintro.html">Introduction to MVC Portlet</a></li><li class="none"><a href="../13/mvcportlets.html">MVC Portlets
in the Registry</a></li><li class="none"><a href="../13/mvctemplate.html">The Template</a></li></ul></div><div id="menuAppendices"><h5>Appendices</h5><ul><li class="none"><a href="../appendix/a.html">A. Property Merging</a></li><li class="none"><a href="../appendix/b.html">B. Turbine and ECS</a></li></ul></div></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Portlet_101"></a><h2>Portlet 101</h2><p>
+Tutorial 5 guides you through the creation of a portlet,
+starting with a simple examples and then introduces you to the fundamental
+concepts of portlet development.. This section covers:
+</p><p>
+<ul>
+<li>1. <a href="helloworld.html.html">1. HelloWorld Portlet</a></li>
+<li>2. <a href="registry.html">2. Adding A Portlet to the Registry</a></li>
+<li>3. <a href="page.html">3. Adding A Portlet to a Page</a></li>
+<li>4. <a href="hellouser.html">4. HelloUser Portlet</a></li>
+<li>5. <a href="deploy.html">Deploy</a></li>
+</ul>
+</p><p>
+Lets get started. From the JPortal /tutorial distribution root directory, type:
+</p><hr></hr><code>
+ maven -Dtutorial=5 jetspeed:deploy
+</code><hr></hr><p>
+Recommend bringing up these configuration files in your editor:
+</p><p>
+<hr></hr>
+<code>
+<ul>
+<li>1. src/java/org/apache/jetspeed/tutorial/portal/portlets/HelloWorldPortlet.java</li>
+<li>2. src/java/org/apache/jetspeed/tutorial/portal/portlets/HelloUserPortlet.java</li>
+<li>3. tutorials/5/anon/html/default.psml</li>
+<li>4. tutorials/5/turbine/html/default.psml</li>
+<li>5. tutorials/5/t5-portlets.xreg</li>
+<li>6. tutorials/5/JetspeedResources.properties.merge</li>
+</ul>
+</code>
+<hr></hr>
+</p><p>
+since we will reference them in tutorial 5.
+</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2005, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
Propchange: portals/site-live/jetspeed-1/tutorial/5/index.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/jetspeed-1/tutorial/5/page.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-1/tutorial/5/page.html?rev=1422668&view=auto
==============================================================================
--- portals/site-live/jetspeed-1/tutorial/5/page.html (added)
+++ portals/site-live/jetspeed-1/tutorial/5/page.html Sun Dec 16 19:04:16 2012
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Jetspeed Portal Tutorial - Adding A Portlet to a Page</title><style type="text/css" media="all">
+ @import url("../style/maven-base.css");
+
+ @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="David Sean Taylor"></meta><meta name="email" content="taylor@apache.org"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="../images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-1/tutorial/" id="projectLogo"><img alt="Jetspeed Portal Tutorial" src="../images/jportal.gif"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 26 May 2005
+ </div><div class="xright">
+
+ <a href="../index.html">Home</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-1/" class="externalLink" title="External Link">Jetspeed-1</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">Jetspeed-2</a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><a href="http://ApacheCon.Com/2005/EU/"><img src="http://apache.org/images/ac2005eu_135x50.gif" width="135" height="50" alt="ApacheCon!" title="Come to ApacheCon!" border="0" /></a><div id="menuGetting_Started:_Install_and_Build"><h5>Getting Started: Install and Build</h5><ul><li class="none"><a href="../index.html">Welcome</a></li><li class="none"><a href="../prerequisites.html">Prerequisites</a></li><li class="none"><a href="../downloading.html">Downloading Jetspeed</a></li><li class="none"><a href="../developing.html">The Jetspeed Plugin</a></li><li class="none"><a href="../planning.html">Planning for Your Portal Site</a></li><li class="none"><a href="../portlet-api.html">The Jetspeed Portlet API</a></li></ul></div><div id="menu1__The_Portal_Web_Design"><h5>1. The Portal Web Design</h5><ul><li class="none"><a href="../1/index.html">Intro</a></li><li class="none"><a href="../1/logo
.html">Change the Portal Logo</a></li><li class="none"><a href="../1/topnav.html">Modify the Top Navigation</a></li><li class="none"><a href="../1/leftnav.html">Remove the Left Navigation</a></li><li class="none"><a href="../1/bottomnav.html">Replace the Bottom Navigation</a></li><li class="none"><a href="../1/skins.html">Change the Skin and CSS</a></li><li class="none"><a href="../1/deploy.html">Deploy</a></li></ul></div><div id="menu2__Localisation"><h5>2. Localisation</h5><ul><li class="none"><a href="../2/index.html">Intro</a></li><li class="none"><a href="../2/bundles.html">Java Resource Bundles</a></li><li class="none"><a href="../2/modules.html">Modules and Bundles</a></li><li class="none"><a href="../2/psml.html">Localisation of PSML Resources</a></li><li class="none"><a href="../2/deploy.html">Deploy</a></li></ul></div><div id="menu3__Site_Map"><h5>3. Site Map</h5><ul><li class="none"><a href="../3/index.html">Intro</a></li><li class="none"><a href="../3/anonymous.h
tml">Anonymous User</a></li><li class="none"><a href="../3/navigations.html">PSML Navigation</a></li><li class="none"><a href="../3/references.html">PSML References</a></li><li class="none"><a href="../3/authenticated.html">Authenticated User</a></li><li class="none"><a href="../3/layout.html">Layout Components</a></li><li class="none"><a href="../3/menus.html">Customizing Menus</a></li><li class="none"><a href="../3/panes.html">Customizing Panes</a></li><li class="none"><a href="../3/deploy.html">Deploy</a></li></ul></div><div id="menu4__Site_Security"><h5>4. Site Security</h5><ul><li class="none"><a href="../4/index.html">Intro</a></li><li class="none"><a href="../4/concepts.html">Security Concepts</a></li><li class="none"><a href="../4/users-roles.html">Managing Users and Roles</a></li><li class="none"><a href="../4/features.html">Security Features</a></li><li class="none"><a href="../4/customizer.html">Customizer and Security</a></li><li class="none"><a href="../4/exampl
e.html">Security Example</a></li><li class="none"><a href="../4/deploy.html">Deploy</a></li></ul></div><div id="menu5__Portlet_101"><h5>5. Portlet 101</h5><ul><li class="none"><a href="../5/index.html">Intro</a></li><li class="none"><a href="../5/helloworld.html">Hello World Portlet</a></li><li class="none"><a href="../5/registry.html">Adding Portlet to Registry</a></li><li class="none"><strong><a href="../5/page.html">Adding Portlet to Page</a></strong></li><li class="none"><a href="../5/hellouser.html">Hello User Portlet</a></li><li class="none"><a href="../5/deploy.html">Deploy</a></li></ul></div><div id="menu6__The_Portlet_Inteface"><h5>6. The Portlet Inteface</h5><ul><li class="none"><a href="../6/index.html">Intro</a></li><li class="none"><a href="../6/mediatypes.html">Media Types</a></li><li class="none"><a href="../6/lifecycle.html">Portlet Lifecycle</a></li><li class="none"><a href="../6/initparams.html">Init Parameters, Titles</a></li><li class="none"><a href="../6
/modes.html">Portlet Modes</a></li><li class="none"><a href="../6/deploy.html">Deploy</a></li></ul></div><div id="menu7__Velocity_Portlet"><h5>7. Velocity Portlet</h5><ul><li class="none"><a href="../7/index.html">Intro</a></li><li class="none"><a href="../7/velocity.html">Velocity Overview</a></li><li class="none"><a href="../7/registry.html">Registry Configuration</a></li><li class="none"><a href="../7/velocitytemplate.html">The Velocity Template</a></li><li class="none"><a href="../7/resolution.html">Template Resolution</a></li><li class="none"><a href="../7/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../7/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../7/events.html">Action Events</a></li><li class="none"><a href="../7/deploy.html">Deploy</a></li></ul></div><div id="menu8__JSP_Portlet"><h5>8. JSP Portlet</h5><ul><li class="none"><a href="../8/index.html">Intro</a></li><li class="none"><a href="../
8/jsp.html">JSP Overview</a></li><li class="none"><a href="../8/registry.html">Registry Configuration</a></li><li class="none"><a href="../8/jsptemplate.html">The JSP Template</a></li><li class="none"><a href="../8/resolution.html">Template Resolution</a></li><li class="none"><a href="../8/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../8/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../8/events.html">Action Events</a></li><li class="none"><a href="../8/deploy.html">Deploy</a></li></ul></div><div id="menu9__Database_Browser_Portlet"><h5>9. Database Browser Portlet</h5><ul><li class="none"><a href="../9/index.html">Intro</a></li><li class="none"><a href="../9/registryconfig.html">Registry Configuration</a></li><li class="none"><a href="../9/actions.html">Linking to Actions</a></li><li class="none"><a href="../9/events.html">Action Events</a></li><li class="none"><a href="../9/advanced.html">Advanced Para
meters</a></li><li class="none"><a href="../9/deploy.html">Deploy</a></li></ul></div><div id="menu10__XSLT_Portlet"><h5>10. XSLT Portlet</h5><ul><li class="none"><a href="../10/index.html">Intro</a></li><li class="none"><a href="../10/xsltregistryconfig.html">Registry Configuration</a></li><li class="none"><a href="../10/xslttransform.html">Transforming</a></li><li class="none"><a href="../10/xsltdeploy.html">Deploy</a></li></ul></div><div id="menu11__RSS_Portlet"><h5>11. RSS Portlet</h5><ul><li class="none"><a href="../11/index.html">Intro</a></li></ul></div><div id="menu12__Parameter_Styles"><h5>12. Parameter Styles</h5><ul><li class="none"><a href="../12/index.html">Intro</a></li><li class="none"><a href="../12/paramstylearchitecture.html">Architecture</a></li></ul></div><div id="menu13__MVC_Portlet"><h5>13. MVC Portlet</h5><ul><li class="none"><a href="../13/mvcintro.html">Introduction to MVC Portlet</a></li><li class="none"><a href="../13/mvcportlets.html">MVC Portlets
in the Registry</a></li><li class="none"><a href="../13/mvctemplate.html">The Template</a></li></ul></div><div id="menuAppendices"><h5>Appendices</h5><ul><li class="none"><a href="../appendix/a.html">A. Property Merging</a></li><li class="none"><a href="../appendix/b.html">B. Turbine and ECS</a></li></ul></div></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Adding_A_Portlet_to_a_Page"></a><h2>Adding A Portlet to a Page</h2><p>
+After successfully deploying the examples to Jetspeed,
+you can then customize your page.
+The Anonymous User and the Turbine User already include the Hello World portlets.
+Lets go ahead and add a second Hello World portlet and see what happens.
+Start up Jetspeed, and logon with the username/password of
+</p>
+ <div class="source"><pre>
+ Username = turbine
+ Password = turbine
+</pre></div>
+ <p>
+Click on the 'Pencil Icon' in the Title Bar (right below the menu).
+This will start the Jetspeed Customizer.
+</p><p>
+<img border="0" width="149" height="95" src="../images/image005-1.jpg" alt=""></img>
+</p><p>
+Click the "Basic Tutorials" menu option. From the Pane Customizer, click the "Add Portlet" button.
+</p><p>
+You should see a screen like below. Select "HelloWorld" and then press the "Apply" button.
+</p><p>
+<img border="0" width="553" height="377" src="../images/image005-2.jpg" alt=""></img>
+</p><p>
+Then from the next screen, press "Save and Apply" and "Apply" again.
+Finally, you should return to the newly customized screen and see the output of your portlet:
+</p><img border="0" width="250" height="215" src="../images/image005-3.jpg" alt=""></img><p>
+So what are those funny numbers after Hello World...<br></br>
+They are the portlet instance ids, which are automatically assigned to the portlet.
+This id uniquely identifies your portlet instance in the entire portal site.
+Portlet Instances, are instances of the your portlet on a PSML page.
+The two different instances use the same Java class instance,
+which saves memory, however they use different parameters and state,
+which is important when you have two or more instances of the same portlet on a page.
+</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2005, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
Propchange: portals/site-live/jetspeed-1/tutorial/5/page.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/jetspeed-1/tutorial/5/registry.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-1/tutorial/5/registry.html?rev=1422668&view=auto
==============================================================================
--- portals/site-live/jetspeed-1/tutorial/5/registry.html (added)
+++ portals/site-live/jetspeed-1/tutorial/5/registry.html Sun Dec 16 19:04:16 2012
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Jetspeed Portal Tutorial - Adding A Portlet to the Registry</title><style type="text/css" media="all">
+ @import url("../style/maven-base.css");
+
+ @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="David Sean Taylor"></meta><meta name="email" content="taylor@apache.org"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="../images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-1/tutorial/" id="projectLogo"><img alt="Jetspeed Portal Tutorial" src="../images/jportal.gif"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 26 May 2005
+ </div><div class="xright">
+
+ <a href="../index.html">Home</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-1/" class="externalLink" title="External Link">Jetspeed-1</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">Jetspeed-2</a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><a href="http://ApacheCon.Com/2005/EU/"><img src="http://apache.org/images/ac2005eu_135x50.gif" width="135" height="50" alt="ApacheCon!" title="Come to ApacheCon!" border="0" /></a><div id="menuGetting_Started:_Install_and_Build"><h5>Getting Started: Install and Build</h5><ul><li class="none"><a href="../index.html">Welcome</a></li><li class="none"><a href="../prerequisites.html">Prerequisites</a></li><li class="none"><a href="../downloading.html">Downloading Jetspeed</a></li><li class="none"><a href="../developing.html">The Jetspeed Plugin</a></li><li class="none"><a href="../planning.html">Planning for Your Portal Site</a></li><li class="none"><a href="../portlet-api.html">The Jetspeed Portlet API</a></li></ul></div><div id="menu1__The_Portal_Web_Design"><h5>1. The Portal Web Design</h5><ul><li class="none"><a href="../1/index.html">Intro</a></li><li class="none"><a href="../1/logo
.html">Change the Portal Logo</a></li><li class="none"><a href="../1/topnav.html">Modify the Top Navigation</a></li><li class="none"><a href="../1/leftnav.html">Remove the Left Navigation</a></li><li class="none"><a href="../1/bottomnav.html">Replace the Bottom Navigation</a></li><li class="none"><a href="../1/skins.html">Change the Skin and CSS</a></li><li class="none"><a href="../1/deploy.html">Deploy</a></li></ul></div><div id="menu2__Localisation"><h5>2. Localisation</h5><ul><li class="none"><a href="../2/index.html">Intro</a></li><li class="none"><a href="../2/bundles.html">Java Resource Bundles</a></li><li class="none"><a href="../2/modules.html">Modules and Bundles</a></li><li class="none"><a href="../2/psml.html">Localisation of PSML Resources</a></li><li class="none"><a href="../2/deploy.html">Deploy</a></li></ul></div><div id="menu3__Site_Map"><h5>3. Site Map</h5><ul><li class="none"><a href="../3/index.html">Intro</a></li><li class="none"><a href="../3/anonymous.h
tml">Anonymous User</a></li><li class="none"><a href="../3/navigations.html">PSML Navigation</a></li><li class="none"><a href="../3/references.html">PSML References</a></li><li class="none"><a href="../3/authenticated.html">Authenticated User</a></li><li class="none"><a href="../3/layout.html">Layout Components</a></li><li class="none"><a href="../3/menus.html">Customizing Menus</a></li><li class="none"><a href="../3/panes.html">Customizing Panes</a></li><li class="none"><a href="../3/deploy.html">Deploy</a></li></ul></div><div id="menu4__Site_Security"><h5>4. Site Security</h5><ul><li class="none"><a href="../4/index.html">Intro</a></li><li class="none"><a href="../4/concepts.html">Security Concepts</a></li><li class="none"><a href="../4/users-roles.html">Managing Users and Roles</a></li><li class="none"><a href="../4/features.html">Security Features</a></li><li class="none"><a href="../4/customizer.html">Customizer and Security</a></li><li class="none"><a href="../4/exampl
e.html">Security Example</a></li><li class="none"><a href="../4/deploy.html">Deploy</a></li></ul></div><div id="menu5__Portlet_101"><h5>5. Portlet 101</h5><ul><li class="none"><a href="../5/index.html">Intro</a></li><li class="none"><a href="../5/helloworld.html">Hello World Portlet</a></li><li class="none"><strong><a href="../5/registry.html">Adding Portlet to Registry</a></strong></li><li class="none"><a href="../5/page.html">Adding Portlet to Page</a></li><li class="none"><a href="../5/hellouser.html">Hello User Portlet</a></li><li class="none"><a href="../5/deploy.html">Deploy</a></li></ul></div><div id="menu6__The_Portlet_Inteface"><h5>6. The Portlet Inteface</h5><ul><li class="none"><a href="../6/index.html">Intro</a></li><li class="none"><a href="../6/mediatypes.html">Media Types</a></li><li class="none"><a href="../6/lifecycle.html">Portlet Lifecycle</a></li><li class="none"><a href="../6/initparams.html">Init Parameters, Titles</a></li><li class="none"><a href="../6
/modes.html">Portlet Modes</a></li><li class="none"><a href="../6/deploy.html">Deploy</a></li></ul></div><div id="menu7__Velocity_Portlet"><h5>7. Velocity Portlet</h5><ul><li class="none"><a href="../7/index.html">Intro</a></li><li class="none"><a href="../7/velocity.html">Velocity Overview</a></li><li class="none"><a href="../7/registry.html">Registry Configuration</a></li><li class="none"><a href="../7/velocitytemplate.html">The Velocity Template</a></li><li class="none"><a href="../7/resolution.html">Template Resolution</a></li><li class="none"><a href="../7/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../7/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../7/events.html">Action Events</a></li><li class="none"><a href="../7/deploy.html">Deploy</a></li></ul></div><div id="menu8__JSP_Portlet"><h5>8. JSP Portlet</h5><ul><li class="none"><a href="../8/index.html">Intro</a></li><li class="none"><a href="../
8/jsp.html">JSP Overview</a></li><li class="none"><a href="../8/registry.html">Registry Configuration</a></li><li class="none"><a href="../8/jsptemplate.html">The JSP Template</a></li><li class="none"><a href="../8/resolution.html">Template Resolution</a></li><li class="none"><a href="../8/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../8/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../8/events.html">Action Events</a></li><li class="none"><a href="../8/deploy.html">Deploy</a></li></ul></div><div id="menu9__Database_Browser_Portlet"><h5>9. Database Browser Portlet</h5><ul><li class="none"><a href="../9/index.html">Intro</a></li><li class="none"><a href="../9/registryconfig.html">Registry Configuration</a></li><li class="none"><a href="../9/actions.html">Linking to Actions</a></li><li class="none"><a href="../9/events.html">Action Events</a></li><li class="none"><a href="../9/advanced.html">Advanced Para
meters</a></li><li class="none"><a href="../9/deploy.html">Deploy</a></li></ul></div><div id="menu10__XSLT_Portlet"><h5>10. XSLT Portlet</h5><ul><li class="none"><a href="../10/index.html">Intro</a></li><li class="none"><a href="../10/xsltregistryconfig.html">Registry Configuration</a></li><li class="none"><a href="../10/xslttransform.html">Transforming</a></li><li class="none"><a href="../10/xsltdeploy.html">Deploy</a></li></ul></div><div id="menu11__RSS_Portlet"><h5>11. RSS Portlet</h5><ul><li class="none"><a href="../11/index.html">Intro</a></li></ul></div><div id="menu12__Parameter_Styles"><h5>12. Parameter Styles</h5><ul><li class="none"><a href="../12/index.html">Intro</a></li><li class="none"><a href="../12/paramstylearchitecture.html">Architecture</a></li></ul></div><div id="menu13__MVC_Portlet"><h5>13. MVC Portlet</h5><ul><li class="none"><a href="../13/mvcintro.html">Introduction to MVC Portlet</a></li><li class="none"><a href="../13/mvcportlets.html">MVC Portlets
in the Registry</a></li><li class="none"><a href="../13/mvctemplate.html">The Template</a></li></ul></div><div id="menuAppendices"><h5>Appendices</h5><ul><li class="none"><a href="../appendix/a.html">A. Property Merging</a></li><li class="none"><a href="../appendix/b.html">B. Turbine and ECS</a></li></ul></div></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Adding_A_Portlet_to_the_Registry"></a><h2>Adding A Portlet to the Registry</h2><p>
+In order for Jetspeed to know about your portlet class, two things must happen:
+</p><p>
+1. Put your class in the classpath. <br></br>
+2. Add a reference to your portlet to Jetspeed's Portlet Registry.
+</p><p>
+The <a href="http://portals.apache.org/jetspeed-1/registry.html" class="externalLink" title="External Link">Jetspeed Portlet Registry</a>
+ contains the definitions of all portlets known to Jetspeed.
+</p><p>
+We've already completed both steps for you when you built and deployed the examples for tutorial 5.
+The example class files are copied to the Jetspeed web application's class directory.
+This is normally where classes specific to your web application are placed (under /WEB-INF/classes).
+</p><p>
+Secondly, a <a href="http://portals.apache.org/jetspeed-1/registry_xml.html" class="externalLink" title="External Link">registry fragment</a>
+ file was created and deployed. See the source:
+</p>
+ <div class="source"><pre>
+ tutorials/5/t5-portlets.xreg
+</pre></div>
+ <p>
+Registry fragments contain portlet definitions.
+Any file in the <b>/WEB-INF/conf</b> directory that has the <b>xreg</b> extension
+is included in the Jetspeed Registry. Here is what a registry entry looks like for our example:
+</p>
+ <div class="source"><pre>
+
+<?xml version="1.0" encoding="UTF-8"?>
+<registry>
+ <portlet-entry name="HelloWorld" hidden="false" type="instance" application="false">
+ <meta-info>
+ <title>HelloWorld</title>
+ <description>Portlet How To Example 1 Hello World</description>
+ </meta-info>
+ <classname>org.apache.jetspeed.tutorial.portal.portlets.HelloWorldPortlet</classname>
+ <media-type ref="html"/>
+ </portlet-entry>
+</registry>
+
+</pre></div>
+ <p>
+We won't cover all the registry syntax here, but its important to give it a name,
+enter the class name correctly, and limit the <b>media-type</b> entry to only the
+media types that you will support. In our example, we only support HTML.
+</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2005, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
Propchange: portals/site-live/jetspeed-1/tutorial/5/registry.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/jetspeed-1/tutorial/6/deploy.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-1/tutorial/6/deploy.html?rev=1422668&view=auto
==============================================================================
--- portals/site-live/jetspeed-1/tutorial/6/deploy.html (added)
+++ portals/site-live/jetspeed-1/tutorial/6/deploy.html Sun Dec 16 19:04:16 2012
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Jetspeed Portal Tutorial - Deploy</title><style type="text/css" media="all">
+ @import url("../style/maven-base.css");
+
+ @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="David Sean Taylor"></meta><meta name="email" content="taylor@apache.org"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="../images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-1/tutorial/" id="projectLogo"><img alt="Jetspeed Portal Tutorial" src="../images/jportal.gif"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 26 May 2005
+ </div><div class="xright">
+
+ <a href="../index.html">Home</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-1/" class="externalLink" title="External Link">Jetspeed-1</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">Jetspeed-2</a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><a href="http://ApacheCon.Com/2005/EU/"><img src="http://apache.org/images/ac2005eu_135x50.gif" width="135" height="50" alt="ApacheCon!" title="Come to ApacheCon!" border="0" /></a><div id="menuGetting_Started:_Install_and_Build"><h5>Getting Started: Install and Build</h5><ul><li class="none"><a href="../index.html">Welcome</a></li><li class="none"><a href="../prerequisites.html">Prerequisites</a></li><li class="none"><a href="../downloading.html">Downloading Jetspeed</a></li><li class="none"><a href="../developing.html">The Jetspeed Plugin</a></li><li class="none"><a href="../planning.html">Planning for Your Portal Site</a></li><li class="none"><a href="../portlet-api.html">The Jetspeed Portlet API</a></li></ul></div><div id="menu1__The_Portal_Web_Design"><h5>1. The Portal Web Design</h5><ul><li class="none"><a href="../1/index.html">Intro</a></li><li class="none"><a href="../1/logo
.html">Change the Portal Logo</a></li><li class="none"><a href="../1/topnav.html">Modify the Top Navigation</a></li><li class="none"><a href="../1/leftnav.html">Remove the Left Navigation</a></li><li class="none"><a href="../1/bottomnav.html">Replace the Bottom Navigation</a></li><li class="none"><a href="../1/skins.html">Change the Skin and CSS</a></li><li class="none"><a href="../1/deploy.html">Deploy</a></li></ul></div><div id="menu2__Localisation"><h5>2. Localisation</h5><ul><li class="none"><a href="../2/index.html">Intro</a></li><li class="none"><a href="../2/bundles.html">Java Resource Bundles</a></li><li class="none"><a href="../2/modules.html">Modules and Bundles</a></li><li class="none"><a href="../2/psml.html">Localisation of PSML Resources</a></li><li class="none"><a href="../2/deploy.html">Deploy</a></li></ul></div><div id="menu3__Site_Map"><h5>3. Site Map</h5><ul><li class="none"><a href="../3/index.html">Intro</a></li><li class="none"><a href="../3/anonymous.h
tml">Anonymous User</a></li><li class="none"><a href="../3/navigations.html">PSML Navigation</a></li><li class="none"><a href="../3/references.html">PSML References</a></li><li class="none"><a href="../3/authenticated.html">Authenticated User</a></li><li class="none"><a href="../3/layout.html">Layout Components</a></li><li class="none"><a href="../3/menus.html">Customizing Menus</a></li><li class="none"><a href="../3/panes.html">Customizing Panes</a></li><li class="none"><a href="../3/deploy.html">Deploy</a></li></ul></div><div id="menu4__Site_Security"><h5>4. Site Security</h5><ul><li class="none"><a href="../4/index.html">Intro</a></li><li class="none"><a href="../4/concepts.html">Security Concepts</a></li><li class="none"><a href="../4/users-roles.html">Managing Users and Roles</a></li><li class="none"><a href="../4/features.html">Security Features</a></li><li class="none"><a href="../4/customizer.html">Customizer and Security</a></li><li class="none"><a href="../4/exampl
e.html">Security Example</a></li><li class="none"><a href="../4/deploy.html">Deploy</a></li></ul></div><div id="menu5__Portlet_101"><h5>5. Portlet 101</h5><ul><li class="none"><a href="../5/index.html">Intro</a></li><li class="none"><a href="../5/helloworld.html">Hello World Portlet</a></li><li class="none"><a href="../5/registry.html">Adding Portlet to Registry</a></li><li class="none"><a href="../5/page.html">Adding Portlet to Page</a></li><li class="none"><a href="../5/hellouser.html">Hello User Portlet</a></li><li class="none"><a href="../5/deploy.html">Deploy</a></li></ul></div><div id="menu6__The_Portlet_Inteface"><h5>6. The Portlet Inteface</h5><ul><li class="none"><a href="../6/index.html">Intro</a></li><li class="none"><a href="../6/mediatypes.html">Media Types</a></li><li class="none"><a href="../6/lifecycle.html">Portlet Lifecycle</a></li><li class="none"><a href="../6/initparams.html">Init Parameters, Titles</a></li><li class="none"><a href="../6/modes.html">Port
let Modes</a></li><li class="none"><strong><a href="../6/deploy.html">Deploy</a></strong></li></ul></div><div id="menu7__Velocity_Portlet"><h5>7. Velocity Portlet</h5><ul><li class="none"><a href="../7/index.html">Intro</a></li><li class="none"><a href="../7/velocity.html">Velocity Overview</a></li><li class="none"><a href="../7/registry.html">Registry Configuration</a></li><li class="none"><a href="../7/velocitytemplate.html">The Velocity Template</a></li><li class="none"><a href="../7/resolution.html">Template Resolution</a></li><li class="none"><a href="../7/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../7/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../7/events.html">Action Events</a></li><li class="none"><a href="../7/deploy.html">Deploy</a></li></ul></div><div id="menu8__JSP_Portlet"><h5>8. JSP Portlet</h5><ul><li class="none"><a href="../8/index.html">Intro</a></li><li class="none"><a href="../
8/jsp.html">JSP Overview</a></li><li class="none"><a href="../8/registry.html">Registry Configuration</a></li><li class="none"><a href="../8/jsptemplate.html">The JSP Template</a></li><li class="none"><a href="../8/resolution.html">Template Resolution</a></li><li class="none"><a href="../8/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../8/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../8/events.html">Action Events</a></li><li class="none"><a href="../8/deploy.html">Deploy</a></li></ul></div><div id="menu9__Database_Browser_Portlet"><h5>9. Database Browser Portlet</h5><ul><li class="none"><a href="../9/index.html">Intro</a></li><li class="none"><a href="../9/registryconfig.html">Registry Configuration</a></li><li class="none"><a href="../9/actions.html">Linking to Actions</a></li><li class="none"><a href="../9/events.html">Action Events</a></li><li class="none"><a href="../9/advanced.html">Advanced Para
meters</a></li><li class="none"><a href="../9/deploy.html">Deploy</a></li></ul></div><div id="menu10__XSLT_Portlet"><h5>10. XSLT Portlet</h5><ul><li class="none"><a href="../10/index.html">Intro</a></li><li class="none"><a href="../10/xsltregistryconfig.html">Registry Configuration</a></li><li class="none"><a href="../10/xslttransform.html">Transforming</a></li><li class="none"><a href="../10/xsltdeploy.html">Deploy</a></li></ul></div><div id="menu11__RSS_Portlet"><h5>11. RSS Portlet</h5><ul><li class="none"><a href="../11/index.html">Intro</a></li></ul></div><div id="menu12__Parameter_Styles"><h5>12. Parameter Styles</h5><ul><li class="none"><a href="../12/index.html">Intro</a></li><li class="none"><a href="../12/paramstylearchitecture.html">Architecture</a></li></ul></div><div id="menu13__MVC_Portlet"><h5>13. MVC Portlet</h5><ul><li class="none"><a href="../13/mvcintro.html">Introduction to MVC Portlet</a></li><li class="none"><a href="../13/mvcportlets.html">MVC Portlets
in the Registry</a></li><li class="none"><a href="../13/mvctemplate.html">The Template</a></li></ul></div><div id="menuAppendices"><h5>Appendices</h5><ul><li class="none"><a href="../appendix/a.html">A. Property Merging</a></li><li class="none"><a href="../appendix/b.html">B. Turbine and ECS</a></li></ul></div></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Deploy"></a><h2>Deploy</h2><p>
+To deploy the system, type:
+</p><p>
+
+ <div class="source"><pre>
+
+maven deploy
+-- or --
+maven hotdeploy
+
+</pre></div>
+
+</p><p>
+Use hotdeploy if you have already deployed the system once. This simply saves some time in packaging the JPortal deployment. Next point your browser at:
+</p><p>
+<a href="http://localhost:8080/jportal/portal" class="externalLink" title="External Link">http://localhost:8080/jportal/portal</a>
+</p><p>
+You should see the new Hello Portlet Interface portlets in the default pane:
+</p><p>
+<img src="../images/image006-7.jpg" alt=""></img>
+</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2005, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
Propchange: portals/site-live/jetspeed-1/tutorial/6/deploy.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/jetspeed-1/tutorial/6/index.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-1/tutorial/6/index.html?rev=1422668&view=auto
==============================================================================
--- portals/site-live/jetspeed-1/tutorial/6/index.html (added)
+++ portals/site-live/jetspeed-1/tutorial/6/index.html Sun Dec 16 19:04:16 2012
@@ -0,0 +1,59 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Jetspeed Portal Tutorial - The Portlet Interface</title><style type="text/css" media="all">
+ @import url("../style/maven-base.css");
+
+ @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="David Sean Taylor"></meta><meta name="email" content="taylor@apache.org"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="../images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-1/tutorial/" id="projectLogo"><img alt="Jetspeed Portal Tutorial" src="../images/jportal.gif"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 26 May 2005
+ </div><div class="xright">
+
+ <a href="../index.html">Home</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-1/" class="externalLink" title="External Link">Jetspeed-1</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">Jetspeed-2</a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><a href="http://ApacheCon.Com/2005/EU/"><img src="http://apache.org/images/ac2005eu_135x50.gif" width="135" height="50" alt="ApacheCon!" title="Come to ApacheCon!" border="0" /></a><div id="menuGetting_Started:_Install_and_Build"><h5>Getting Started: Install and Build</h5><ul><li class="none"><a href="../index.html">Welcome</a></li><li class="none"><a href="../prerequisites.html">Prerequisites</a></li><li class="none"><a href="../downloading.html">Downloading Jetspeed</a></li><li class="none"><a href="../developing.html">The Jetspeed Plugin</a></li><li class="none"><a href="../planning.html">Planning for Your Portal Site</a></li><li class="none"><a href="../portlet-api.html">The Jetspeed Portlet API</a></li></ul></div><div id="menu1__The_Portal_Web_Design"><h5>1. The Portal Web Design</h5><ul><li class="none"><a href="../1/index.html">Intro</a></li><li class="none"><a href="../1/logo
.html">Change the Portal Logo</a></li><li class="none"><a href="../1/topnav.html">Modify the Top Navigation</a></li><li class="none"><a href="../1/leftnav.html">Remove the Left Navigation</a></li><li class="none"><a href="../1/bottomnav.html">Replace the Bottom Navigation</a></li><li class="none"><a href="../1/skins.html">Change the Skin and CSS</a></li><li class="none"><a href="../1/deploy.html">Deploy</a></li></ul></div><div id="menu2__Localisation"><h5>2. Localisation</h5><ul><li class="none"><a href="../2/index.html">Intro</a></li><li class="none"><a href="../2/bundles.html">Java Resource Bundles</a></li><li class="none"><a href="../2/modules.html">Modules and Bundles</a></li><li class="none"><a href="../2/psml.html">Localisation of PSML Resources</a></li><li class="none"><a href="../2/deploy.html">Deploy</a></li></ul></div><div id="menu3__Site_Map"><h5>3. Site Map</h5><ul><li class="none"><a href="../3/index.html">Intro</a></li><li class="none"><a href="../3/anonymous.h
tml">Anonymous User</a></li><li class="none"><a href="../3/navigations.html">PSML Navigation</a></li><li class="none"><a href="../3/references.html">PSML References</a></li><li class="none"><a href="../3/authenticated.html">Authenticated User</a></li><li class="none"><a href="../3/layout.html">Layout Components</a></li><li class="none"><a href="../3/menus.html">Customizing Menus</a></li><li class="none"><a href="../3/panes.html">Customizing Panes</a></li><li class="none"><a href="../3/deploy.html">Deploy</a></li></ul></div><div id="menu4__Site_Security"><h5>4. Site Security</h5><ul><li class="none"><a href="../4/index.html">Intro</a></li><li class="none"><a href="../4/concepts.html">Security Concepts</a></li><li class="none"><a href="../4/users-roles.html">Managing Users and Roles</a></li><li class="none"><a href="../4/features.html">Security Features</a></li><li class="none"><a href="../4/customizer.html">Customizer and Security</a></li><li class="none"><a href="../4/exampl
e.html">Security Example</a></li><li class="none"><a href="../4/deploy.html">Deploy</a></li></ul></div><div id="menu5__Portlet_101"><h5>5. Portlet 101</h5><ul><li class="none"><a href="../5/index.html">Intro</a></li><li class="none"><a href="../5/helloworld.html">Hello World Portlet</a></li><li class="none"><a href="../5/registry.html">Adding Portlet to Registry</a></li><li class="none"><a href="../5/page.html">Adding Portlet to Page</a></li><li class="none"><a href="../5/hellouser.html">Hello User Portlet</a></li><li class="none"><a href="../5/deploy.html">Deploy</a></li></ul></div><div id="menu6__The_Portlet_Inteface"><h5>6. The Portlet Inteface</h5><ul><li class="none"><strong><a href="../6/index.html">Intro</a></strong></li><li class="none"><a href="../6/mediatypes.html">Media Types</a></li><li class="none"><a href="../6/lifecycle.html">Portlet Lifecycle</a></li><li class="none"><a href="../6/initparams.html">Init Parameters, Titles</a></li><li class="none"><a href="../6
/modes.html">Portlet Modes</a></li><li class="none"><a href="../6/deploy.html">Deploy</a></li></ul></div><div id="menu7__Velocity_Portlet"><h5>7. Velocity Portlet</h5><ul><li class="none"><a href="../7/index.html">Intro</a></li><li class="none"><a href="../7/velocity.html">Velocity Overview</a></li><li class="none"><a href="../7/registry.html">Registry Configuration</a></li><li class="none"><a href="../7/velocitytemplate.html">The Velocity Template</a></li><li class="none"><a href="../7/resolution.html">Template Resolution</a></li><li class="none"><a href="../7/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../7/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../7/events.html">Action Events</a></li><li class="none"><a href="../7/deploy.html">Deploy</a></li></ul></div><div id="menu8__JSP_Portlet"><h5>8. JSP Portlet</h5><ul><li class="none"><a href="../8/index.html">Intro</a></li><li class="none"><a href="../
8/jsp.html">JSP Overview</a></li><li class="none"><a href="../8/registry.html">Registry Configuration</a></li><li class="none"><a href="../8/jsptemplate.html">The JSP Template</a></li><li class="none"><a href="../8/resolution.html">Template Resolution</a></li><li class="none"><a href="../8/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../8/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../8/events.html">Action Events</a></li><li class="none"><a href="../8/deploy.html">Deploy</a></li></ul></div><div id="menu9__Database_Browser_Portlet"><h5>9. Database Browser Portlet</h5><ul><li class="none"><a href="../9/index.html">Intro</a></li><li class="none"><a href="../9/registryconfig.html">Registry Configuration</a></li><li class="none"><a href="../9/actions.html">Linking to Actions</a></li><li class="none"><a href="../9/events.html">Action Events</a></li><li class="none"><a href="../9/advanced.html">Advanced Para
meters</a></li><li class="none"><a href="../9/deploy.html">Deploy</a></li></ul></div><div id="menu10__XSLT_Portlet"><h5>10. XSLT Portlet</h5><ul><li class="none"><a href="../10/index.html">Intro</a></li><li class="none"><a href="../10/xsltregistryconfig.html">Registry Configuration</a></li><li class="none"><a href="../10/xslttransform.html">Transforming</a></li><li class="none"><a href="../10/xsltdeploy.html">Deploy</a></li></ul></div><div id="menu11__RSS_Portlet"><h5>11. RSS Portlet</h5><ul><li class="none"><a href="../11/index.html">Intro</a></li></ul></div><div id="menu12__Parameter_Styles"><h5>12. Parameter Styles</h5><ul><li class="none"><a href="../12/index.html">Intro</a></li><li class="none"><a href="../12/paramstylearchitecture.html">Architecture</a></li></ul></div><div id="menu13__MVC_Portlet"><h5>13. MVC Portlet</h5><ul><li class="none"><a href="../13/mvcintro.html">Introduction to MVC Portlet</a></li><li class="none"><a href="../13/mvcportlets.html">MVC Portlets
in the Registry</a></li><li class="none"><a href="../13/mvctemplate.html">The Template</a></li></ul></div><div id="menuAppendices"><h5>Appendices</h5><ul><li class="none"><a href="../appendix/a.html">A. Property Merging</a></li><li class="none"><a href="../appendix/b.html">B. Turbine and ECS</a></li></ul></div></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="The_Portlet_Interface"></a><h2>The Portlet Interface</h2><p>
+Tutorial 6 introduces the Portlet interface. This section covers:
+</p><p>
+<ul>
+<li>1. <a href="mediatypes.html">Media Types</a></li>
+<li>2. <a href="lifecycle.html">Portlet Life Cycle</a></li>
+<li>3. <a href="initparams.html">Init Parameters, Attributes and Titles</a></li>
+<li>4. <a href="modes.html">Portlet Modes</a></li>
+<li>5. <a href="deploy.html">Deploy</a></li>
+</ul>
+</p><p>
+Let's get started. From the JPortal distribution root directory, type:
+</p><p>
+
+ <div class="source"><pre>
+
+maven -Dtutorial=6 jetspeed:deploy
+
+</pre></div>
+
+</p><p>
+Recommend bringing up these files in your editor:
+</p><p>
+<ul>
+<li>1. webapp/WEB-INF/conf/t6-portlets.xreg</li>
+<li>2. webapp/WEB-INF/psml/user/anon/html/default.psml</li>
+<li>3. webapp/WEB-INF/psml/user/turbine/html/default.psml</li>
+<li>4. src/java/org/apache/jetspeed/tutorial/portal/portlets/HelloPortletInterface.java</li>
+<li>5. webapp/WEB-INF/conf/JPortalJetspeed.properties</li>
+</ul>
+</p><p>
+since we will reference them in tutorial 6.
+</p><p>
+Portlets generate content fragments (from the <b>getContent()</b> method) that are aggregated together in a portal page as shown below. Jetspeed takes the content generated by each portlet, and includes it in a portlet window. The location on the page for the portlet window is controlled by the administrator or user when customizing a portlet page. The Portlet interface is the contract between the portlet developer and Jetspeed defining how a portlet behaves and interacts with the Jetspeed environment.
+</p><p>
+<img src="../images/image006-1.jpg" width="553" height="541" alt=""></img>
+</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2005, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
Propchange: portals/site-live/jetspeed-1/tutorial/6/index.html
------------------------------------------------------------------------------
svn:executable = *
Added: portals/site-live/jetspeed-1/tutorial/6/initparams.html
URL: http://svn.apache.org/viewvc/portals/site-live/jetspeed-1/tutorial/6/initparams.html?rev=1422668&view=auto
==============================================================================
--- portals/site-live/jetspeed-1/tutorial/6/initparams.html (added)
+++ portals/site-live/jetspeed-1/tutorial/6/initparams.html Sun Dec 16 19:04:16 2012
@@ -0,0 +1,104 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Jetspeed Portal Tutorial - Init Parameters, Attributes and Titles</title><style type="text/css" media="all">
+ @import url("../style/maven-base.css");
+
+ @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="David Sean Taylor"></meta><meta name="email" content="taylor@apache.org"></meta></head><body class="composite"><div id="banner"><a href="http://www.apache.org/" id="organizationLogo"><img alt="Apache Software Foundation" src="../images/apache-portals.gif"></img></a><a href="http://portals.apache.org/jetspeed-1/tutorial/" id="projectLogo"><img alt="Jetspeed Portal Tutorial" src="../images/jportal.gif"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
+ Last published: 26 May 2005
+ </div><div class="xright">
+
+ <a href="../index.html">Home</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-1/" class="externalLink" title="External Link">Jetspeed-1</a>
+
+
+
+ <span class="separator">|</span>
+
+
+ <a href="http://portals.apache.org/jetspeed-2/" class="externalLink" title="External Link">Jetspeed-2</a>
+ </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><a href="http://ApacheCon.Com/2005/EU/"><img src="http://apache.org/images/ac2005eu_135x50.gif" width="135" height="50" alt="ApacheCon!" title="Come to ApacheCon!" border="0" /></a><div id="menuGetting_Started:_Install_and_Build"><h5>Getting Started: Install and Build</h5><ul><li class="none"><a href="../index.html">Welcome</a></li><li class="none"><a href="../prerequisites.html">Prerequisites</a></li><li class="none"><a href="../downloading.html">Downloading Jetspeed</a></li><li class="none"><a href="../developing.html">The Jetspeed Plugin</a></li><li class="none"><a href="../planning.html">Planning for Your Portal Site</a></li><li class="none"><a href="../portlet-api.html">The Jetspeed Portlet API</a></li></ul></div><div id="menu1__The_Portal_Web_Design"><h5>1. The Portal Web Design</h5><ul><li class="none"><a href="../1/index.html">Intro</a></li><li class="none"><a href="../1/logo
.html">Change the Portal Logo</a></li><li class="none"><a href="../1/topnav.html">Modify the Top Navigation</a></li><li class="none"><a href="../1/leftnav.html">Remove the Left Navigation</a></li><li class="none"><a href="../1/bottomnav.html">Replace the Bottom Navigation</a></li><li class="none"><a href="../1/skins.html">Change the Skin and CSS</a></li><li class="none"><a href="../1/deploy.html">Deploy</a></li></ul></div><div id="menu2__Localisation"><h5>2. Localisation</h5><ul><li class="none"><a href="../2/index.html">Intro</a></li><li class="none"><a href="../2/bundles.html">Java Resource Bundles</a></li><li class="none"><a href="../2/modules.html">Modules and Bundles</a></li><li class="none"><a href="../2/psml.html">Localisation of PSML Resources</a></li><li class="none"><a href="../2/deploy.html">Deploy</a></li></ul></div><div id="menu3__Site_Map"><h5>3. Site Map</h5><ul><li class="none"><a href="../3/index.html">Intro</a></li><li class="none"><a href="../3/anonymous.h
tml">Anonymous User</a></li><li class="none"><a href="../3/navigations.html">PSML Navigation</a></li><li class="none"><a href="../3/references.html">PSML References</a></li><li class="none"><a href="../3/authenticated.html">Authenticated User</a></li><li class="none"><a href="../3/layout.html">Layout Components</a></li><li class="none"><a href="../3/menus.html">Customizing Menus</a></li><li class="none"><a href="../3/panes.html">Customizing Panes</a></li><li class="none"><a href="../3/deploy.html">Deploy</a></li></ul></div><div id="menu4__Site_Security"><h5>4. Site Security</h5><ul><li class="none"><a href="../4/index.html">Intro</a></li><li class="none"><a href="../4/concepts.html">Security Concepts</a></li><li class="none"><a href="../4/users-roles.html">Managing Users and Roles</a></li><li class="none"><a href="../4/features.html">Security Features</a></li><li class="none"><a href="../4/customizer.html">Customizer and Security</a></li><li class="none"><a href="../4/exampl
e.html">Security Example</a></li><li class="none"><a href="../4/deploy.html">Deploy</a></li></ul></div><div id="menu5__Portlet_101"><h5>5. Portlet 101</h5><ul><li class="none"><a href="../5/index.html">Intro</a></li><li class="none"><a href="../5/helloworld.html">Hello World Portlet</a></li><li class="none"><a href="../5/registry.html">Adding Portlet to Registry</a></li><li class="none"><a href="../5/page.html">Adding Portlet to Page</a></li><li class="none"><a href="../5/hellouser.html">Hello User Portlet</a></li><li class="none"><a href="../5/deploy.html">Deploy</a></li></ul></div><div id="menu6__The_Portlet_Inteface"><h5>6. The Portlet Inteface</h5><ul><li class="none"><a href="../6/index.html">Intro</a></li><li class="none"><a href="../6/mediatypes.html">Media Types</a></li><li class="none"><a href="../6/lifecycle.html">Portlet Lifecycle</a></li><li class="none"><strong><a href="../6/initparams.html">Init Parameters, Titles</a></strong></li><li class="none"><a href="../6
/modes.html">Portlet Modes</a></li><li class="none"><a href="../6/deploy.html">Deploy</a></li></ul></div><div id="menu7__Velocity_Portlet"><h5>7. Velocity Portlet</h5><ul><li class="none"><a href="../7/index.html">Intro</a></li><li class="none"><a href="../7/velocity.html">Velocity Overview</a></li><li class="none"><a href="../7/registry.html">Registry Configuration</a></li><li class="none"><a href="../7/velocitytemplate.html">The Velocity Template</a></li><li class="none"><a href="../7/resolution.html">Template Resolution</a></li><li class="none"><a href="../7/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../7/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../7/events.html">Action Events</a></li><li class="none"><a href="../7/deploy.html">Deploy</a></li></ul></div><div id="menu8__JSP_Portlet"><h5>8. JSP Portlet</h5><ul><li class="none"><a href="../8/index.html">Intro</a></li><li class="none"><a href="../
8/jsp.html">JSP Overview</a></li><li class="none"><a href="../8/registry.html">Registry Configuration</a></li><li class="none"><a href="../8/jsptemplate.html">The JSP Template</a></li><li class="none"><a href="../8/resolution.html">Template Resolution</a></li><li class="none"><a href="../8/actioncontext.html">Actions and the Context</a></li><li class="none"><a href="../8/customization.html">Customization, Parameter Styles</a></li><li class="none"><a href="../8/events.html">Action Events</a></li><li class="none"><a href="../8/deploy.html">Deploy</a></li></ul></div><div id="menu9__Database_Browser_Portlet"><h5>9. Database Browser Portlet</h5><ul><li class="none"><a href="../9/index.html">Intro</a></li><li class="none"><a href="../9/registryconfig.html">Registry Configuration</a></li><li class="none"><a href="../9/actions.html">Linking to Actions</a></li><li class="none"><a href="../9/events.html">Action Events</a></li><li class="none"><a href="../9/advanced.html">Advanced Para
meters</a></li><li class="none"><a href="../9/deploy.html">Deploy</a></li></ul></div><div id="menu10__XSLT_Portlet"><h5>10. XSLT Portlet</h5><ul><li class="none"><a href="../10/index.html">Intro</a></li><li class="none"><a href="../10/xsltregistryconfig.html">Registry Configuration</a></li><li class="none"><a href="../10/xslttransform.html">Transforming</a></li><li class="none"><a href="../10/xsltdeploy.html">Deploy</a></li></ul></div><div id="menu11__RSS_Portlet"><h5>11. RSS Portlet</h5><ul><li class="none"><a href="../11/index.html">Intro</a></li></ul></div><div id="menu12__Parameter_Styles"><h5>12. Parameter Styles</h5><ul><li class="none"><a href="../12/index.html">Intro</a></li><li class="none"><a href="../12/paramstylearchitecture.html">Architecture</a></li></ul></div><div id="menu13__MVC_Portlet"><h5>13. MVC Portlet</h5><ul><li class="none"><a href="../13/mvcintro.html">Introduction to MVC Portlet</a></li><li class="none"><a href="../13/mvcportlets.html">MVC Portlets
in the Registry</a></li><li class="none"><a href="../13/mvctemplate.html">The Template</a></li></ul></div><div id="menuAppendices"><h5>Appendices</h5><ul><li class="none"><a href="../appendix/a.html">A. Property Merging</a></li><li class="none"><a href="../appendix/b.html">B. Turbine and ECS</a></li></ul></div></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Init_Parameters__Attributes_and_Titles"></a><h2>Init Parameters, Attributes and Titles</h2><p>
+The Portlet interface allows for you to set two different types of configuration variables
+for your portlet and its instances. Init Parameters are defined in the registry.
+Attributes are defined in a PSML file. Init Parameters are associated with all portlets
+of a given class and are read only. Attributes are associated with only one instance of
+a portlet class on a given PSML page, and can be modified and persisted. Given our example
+portlet, we have the Init Parameter named 'version', which is set to the value '1.6'.
+We also have two instances of the same portlet on our page.
+Each of these portlets instances have the same parameter defined on the same PSML page,
+called 'city' with the value of 'Tokyo' and 'Sidney'.
+</p><p>
+Here is the Init Parameter defined in the registry.
+Init Parameters can be hidden.
+This means they will not be displayed in certain areas of the application such as
+portlet customization:
+</p>
+ <div class="source"><pre>
+
+ <parameter name="version" value="1.6" hidden="false"/>
+
+</pre></div>
+ <p>
+And the attributes for each portlet instance:
+</p>
+ <div class="source"><pre>
+
+ <entry parent="HelloPortletInterface">
+ <parameter name='city' value='Tokyo'/>
+ </entry>
+ <entry parent="HelloPortletInterface">
+ <parameter name='city' value='Sidney'/>
+ </entry>
+
+</pre></div>
+ <p>
+The portlet interface supports working with portlet instances directly using the methods:
+</p>
+ <div class="source"><pre>
+
+getID() : returns the unique Portlet instance id
+getInstance() : returns the instance associated with this portlet.
+getAttribute() : returns a persistent attribute from page storage
+setAttribute() : stores an attribute to a persistent page
+
+</pre></div>
+ <p>
+For accessing read only Init Parameters, you must first get the
+<a href="http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/PortletConfig.html" class="externalLink" title="External Link">PortletConfig</a>
+ object for a portlet, and from there you can get the Init Parameters.
+From the getContent method:
+</p>
+ <div class="source"><pre>
+
+ text.append("Portlet id = " + this.getID());
+ text.append("<BR/>");
+ text.append("Init Parameter (version): " +
+ pc.getInitParameter("version", "NOT FOUND!");
+ text.append("<BR/>");
+ text.append("Page Attribute (city): "
+ + this.getAttribute("city", "NOT FOUND!", rundata);
+
+</pre></div>
+ <p>
+The Jetspeed Portlet customizer only displays Init Parameters in the edit window.
+Thus the 'city' attribute described above will not show up in the customizer,
+since it doesn't have an Init Parameter associated with it.
+The portlet customizer associates Attributes with Init Parameters,
+and allows you to edit the parameter, but when it is saved, it is saved as an
+attribute to the current page, and is not saved to the common registry entry.
+</p><p>
+Lets try customizing the first Hello Portlet Interface portlet:
+</p><img border="0" width="553" height="160" src="../images/image006-4.jpg" alt=""></img><p>
+Press update and we see:
+</p><img border="0" width="344" height="329" src="../images/image006-5.jpg" alt=""></img><p>
+If you want to use the default customizer,
+it is recommended that all of your parameters be defined in the portlet registry
+when you deploy your portlets. Also notice that the title was changed.
+Titles are maintained with the Portlet interface methods
+<a href="http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/Portlet.html#getTitle()" class="externalLink" title="External Link">getTitle</a>
+ and
+<a href="http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/portal/Portlet.html#setTitle()" class="externalLink" title="External Link">setTitle</a>.
+</p></div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright">© 2004-2005, Apache Software Foundation</div><div class="clear"><hr></hr></div></div></body></html>
Propchange: portals/site-live/jetspeed-1/tutorial/6/initparams.html
------------------------------------------------------------------------------
svn:executable = *