JBoss Portal SVN: r9972 - in modules/portlet/trunk/test/src/test/resources/simple-portal-war: images and 1 other directory.
by portal-commits@lists.jboss.org
Author: wesleyhales
Date: 2008-02-14 13:16:15 -0500 (Thu, 14 Feb 2008)
New Revision: 9972
Modified:
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/pc20-picture.gif
Log:
small change
Modified: modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
===================================================================
--- modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-14 17:54:26 UTC (rev 9971)
+++ modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-14 18:16:15 UTC (rev 9972)
@@ -323,6 +323,10 @@
border-bottom: 1px solid #777777;
}
+div#container div#content div.main-content p {
+ padding: 5px;
+}
+
div#container div#content div.content-box {
background-image: url( /simple-portal/images/content-box-bg.gif );
background-repeat: repeat-x;
Modified: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/pc20-picture.gif
===================================================================
(Binary files differ)
16 years, 9 months
JBoss Portal SVN: r9971 - modules/portlet/trunk/test/src/test/resources/simple-portal-war/css.
by portal-commits@lists.jboss.org
Author: wesleyhales
Date: 2008-02-14 12:54:26 -0500 (Thu, 14 Feb 2008)
New Revision: 9971
Modified:
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
Log:
change link color
Modified: modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
===================================================================
--- modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-14 17:51:12 UTC (rev 9970)
+++ modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-14 17:54:26 UTC (rev 9971)
@@ -129,7 +129,7 @@
}
a {
- color: #666666;
+ color: #990000;
}
p {
16 years, 9 months
JBoss Portal SVN: r9970 - in modules/portlet/trunk/test/src/test/resources/simple-portal-war: demo and 1 other directories.
by portal-commits@lists.jboss.org
Author: wesleyhales
Date: 2008-02-14 12:51:12 -0500 (Thu, 14 Feb 2008)
New Revision: 9970
Added:
modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-bg.gif
modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-head-lt.gif
modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-head-rt.gif
modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/pc20-picture.gif
Modified:
modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
modules/portlet/trunk/test/src/test/resources/simple-portal-war/demo/home.jsp
Log:
home page markup
Modified: modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css
===================================================================
--- modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-14 16:23:07 UTC (rev 9969)
+++ modules/portlet/trunk/test/src/test/resources/simple-portal-war/css/master.css 2008-02-14 17:51:12 UTC (rev 9970)
@@ -314,3 +314,48 @@
div.remote-container ul li a {
color: #332299
}
+
+/*-------------------------------------Home page*/
+
+div#container div#content div.main-content {
+ padding: 5px;
+ width: 950px;
+ border-bottom: 1px solid #777777;
+}
+
+div#container div#content div.content-box {
+ background-image: url( /simple-portal/images/content-box-bg.gif );
+ background-repeat: repeat-x;
+ background-position: top right;
+ height: 200px ;
+ width: 300px;
+ margin: 0 13px 0 13px;
+}
+
+div#container div#content div.content-box div.box-header {
+ position: relative;
+ height: 28px;
+ width: 100%;
+}
+
+div#container div#content div.content-box div.box-header h3{
+ padding: 4px 0 0 10px;
+ font-size:1.2em;
+}
+
+
+div#container div#content div.content-box div.box-header img.left {
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+div#container div#content div.content-box div.box-header img.right {
+ position: absolute;
+ top: 0;
+ right: 0;
+}
+
+div#container div#content div.content-box div.box-content {
+ padding: 5px;
+}
\ No newline at end of file
Modified: modules/portlet/trunk/test/src/test/resources/simple-portal-war/demo/home.jsp
===================================================================
--- modules/portlet/trunk/test/src/test/resources/simple-portal-war/demo/home.jsp 2008-02-14 16:23:07 UTC (rev 9969)
+++ modules/portlet/trunk/test/src/test/resources/simple-portal-war/demo/home.jsp 2008-02-14 17:51:12 UTC (rev 9970)
@@ -1,9 +1,12 @@
<%@ page contentType="text/html" %>
<%@ include file="/layouts/header.jsp" %>
-
-
+<div style="padding:10px">
+<div class="full-width main-content">
<!-- Logo floated to the left of text would be good! :) -->
-<p><a href="http://labs.jboss.com/portletcontainer" target="jboss">JBoss Portlet Container</a> is the next generation
+<p>
+ <img src="${pageContext.request.contextPath}/images/pc20-picture.gif" alt="" align="right"/>
+ <a href="http://labs.jboss.com/portletcontainer" target="jboss">
+ JBoss Portlet Container</a> is the next generation
portlet container on which future versions of JBoss Portal will be based. It provides a standard-compliant
implementation of the JSR-286 Portlet 2.0 specification. It has been developed with reusability in mind so that
advanced users, who don't require a full-fledged portal, can leverage the portlet management services it provides in
@@ -12,34 +15,55 @@
<p>This simple portal is a demonstration of what can be achieved reasonably quickly by leveraging JBoss Portlet
Container.</p>
+</div>
+ <br/>
+<div class="content-box float-left">
+ <div class="box-header">
+ <img src="${pageContext.request.contextPath}/images/content-box-head-lt.gif" alt="" class="left"/>
+ <h3>Support Services</h3>
+ <img src="${pageContext.request.contextPath}/images/content-box-head-rt.gif" alt="" class="right"/>
+ </div>
+ <div class="box-content">
+ <p>JBoss (a division of Red Hat Inc.) offers various support services tailored to fit your needs.
+ <a target="jboss" href="http://jboss.com/services/index">Explore</a> support and service options for
+ <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Portal</a>.</p>
+ </div>
+</div>
-<table width="100%">
- <tr>
- <td valign="top"><h3>Support Services</h3>
-
- <p>JBoss (a division of Red Hat Inc.) offers various support services tailored to fit your needs.
- <a target="jboss" href="http://jboss.com/services/index">Explore</a> support and service options for
- <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Portal</a>.</p>
- </td>
- <td valign="top"><h3>PortletSwap</h3>
-
- <p><a href="http://www.portletswap.com" target="jboss">Portletswap.com</a> is an open community sponsored
+<div class="content-box float-left">
+ <div class="box-header">
+ <img src="${pageContext.request.contextPath}/images/content-box-head-lt.gif" alt="" class="left"/>
+ <h3>PortletSwap</h3>
+ <img src="${pageContext.request.contextPath}/images/content-box-head-rt.gif" alt="" class="right"/>
+ </div>
+ <div class="box-content">
+ <p><a href="http://www.portletswap.com" target="jboss">Portletswap.com</a> is an open community sponsored
by JBoss to facilitate the exchange of portlets that can be used with JBoss Portlet Container and JBoss
Portal.</p>
- </td>
- <td valign="top"><h3>Project Information</h3>
+ </div>
+</div>
- <p>Learn more about <a href="http://labs.jboss.com/portletcontainer" target="jboss">JBoss Portlet Container</a>
- community project, <a href="http://labs.jboss.com/jbossportal" target="jboss">JBoss Portal</a>,
- <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Portal platform</a></p>
- </td>
- </tr>
-</table>
-
-<p>Thank you for downloading and deploying JBoss Portlet Container. We hope your enjoy working with it as much as we
+<div class="content-box float-left">
+ <div class="box-header">
+ <img src="${pageContext.request.contextPath}/images/content-box-head-lt.gif" alt="" class="left"/>
+ <h3>Project Information</h3>
+ <img src="${pageContext.request.contextPath}/images/content-box-head-rt.gif" alt="" class="right"/>
+ </div>
+ <div class="box-content">
+ <p>Learn more about <a href="http://labs.jboss.com/portletcontainer" target="jboss">JBoss Portlet Container</a>
+ community project, <a href="http://labs.jboss.com/jbossportal" target="jboss">JBoss Portal</a>,
+ <a href="http://jboss.com/products/platforms/portals" target="jboss">JBoss Portal platform</a></p>
+ </div>
+</div>
+ <br/>
+<div class="full-width main-content clear">
+ <p>Thank you for downloading and deploying JBoss Portlet Container. We hope your enjoy working with it as much as we
enjoy developing it!</p>
-<p>Baci e abbracci,<br/>
- The JBoss Portal Team.</p>
+ <p>Baci e abbracci,<br/>
+ The JBoss Portal Team.</p>
+</div>
+</div>
+
<%@ include file="/layouts/footer.jsp" %>
\ No newline at end of file
Added: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-bg.gif
===================================================================
(Binary files differ)
Property changes on: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-head-lt.gif
===================================================================
(Binary files differ)
Property changes on: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-head-lt.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-head-rt.gif
===================================================================
(Binary files differ)
Property changes on: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/content-box-head-rt.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/pc20-picture.gif
===================================================================
(Binary files differ)
Property changes on: modules/portlet/trunk/test/src/test/resources/simple-portal-war/images/pc20-picture.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 9 months
JBoss Portal SVN: r9969 - modules/portlet/trunk/build/distrib.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-02-14 11:23:07 -0500 (Thu, 14 Feb 2008)
New Revision: 9969
Modified:
modules/portlet/trunk/build/distrib/distrib.xml
Log:
- Added samples to binary distributions.
Modified: modules/portlet/trunk/build/distrib/distrib.xml
===================================================================
--- modules/portlet/trunk/build/distrib/distrib.xml 2008-02-14 08:46:35 UTC (rev 9968)
+++ modules/portlet/trunk/build/distrib/distrib.xml 2008-02-14 16:23:07 UTC (rev 9969)
@@ -130,6 +130,9 @@
<copy todir="${bin.dir}/lib" flatten="true">
<fileset dir="${source.dir}" includes="**/target/*.jar" excludes="**/*sources.jar"/>
</copy>
+ <copy todir="${bin.dir}/samples" flatten="true">
+ <fileset dir="${source.dir}/test/target/portal/samples" includes="*.war"/>
+ </copy>
</target>
<target name="__package-distrib">
16 years, 9 months
JBoss Portal SVN: r9968 - docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: mmcallis
Date: 2008-02-14 03:46:35 -0500 (Thu, 14 Feb 2008)
New Revision: 9968
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
Log:
5.2.2.3. Portlet Class
revising, fixing my broken variablelist
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 08:06:18 UTC (rev 9967)
+++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 08:46:35 UTC (rev 9968)
@@ -744,8 +744,7 @@
</para>
</listitem>
</varlistentry>
-<variablelist>
- <varlistentry><term><screen><![CDATA[
+<varlistentry><term><screen><![CDATA[
public void processAction(ActionRequest aRequest, ActionResponse aResponse)
throws PortletException, IOException, UnavailableException
{
@@ -762,32 +761,27 @@
</para>
</listitem>
</varlistentry>
-
- It will retrieve <literal>yourname</literal> from the HTML form,
- and pass it along as a <literal>renderParameter</literal> to the <literal>doView()</literal>
- method.
- </para>
- </listitem>
- <listitem>
- <para>
- <programlisting>rResponse.setContentType("text/html");</programlisting>
- Just like in the servlet world, you must declare which kind of MIME type of the content the
- portlet will be generating.
- </para>
- </listitem>
- <listitem>
- <para>
- <programlisting><![CDATA[protected void doView(RenderRequest rRequest, RenderResponse rResponse)
- throws PortletException, IOException, UnavailableException
-]]></programlisting>
- In this case, our <literal>doView</literal> implementation is responsible for dispatching to
- the appropriate JSP <literal>view.jsp</literal> or <literal>view2.jsp</literal>, depending on
- the existence of the <literal>yourname</literal> parameter passed in from
- <literal>processAction</literal>.
- </para>
- </listitem>
- </itemizedlist>
- </para>
+<varlistentry><term><screen><![CDATA[
+rResponse.setContentType("text/html");]]>
+</screen></term>
+<listitem>
+ <para>
+ As in the servlet-world, you must declare what content-type the portlet will be responding in. Do this before starting to write content, or the portlet will throw an exception.
+ </para>
+</listitem>
+</varlistentry>
+<varlistentry><term><screen><![CDATA[
+protected void doView(RenderRequest rRequest, RenderResponse rResponse)
+ throws PortletException, IOException, UnavailableException]]>
+</screen></term>
+<listitem>
+ <para>
+ The <literal>doView</literal> implementation is responsible for dispatching to the appropriate JSP, <filename>HelloWorldJSPPortlet/WEB-INF/jsp/view.jsp</filename> or <filename>HelloWorldJSPPortlet/WEB-INF/jsp/view2.jsp</filename>, depending on the existence of the <literal>yourname</literal> parameter passed in from <literal>processAction</literal>.
+ </para>
+</listitem>
+</varlistentry>
+</variablelist>
+</para>
</sect3>
<sect3>
<title>JSP files and the portlet taglib</title>
16 years, 9 months
JBoss Portal SVN: r9967 - docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: mmcallis
Date: 2008-02-14 03:06:18 -0500 (Thu, 14 Feb 2008)
New Revision: 9967
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
Log:
revising 5.2.2.3. Portlet Class with variablelists.
Periodic backup. This will break the book until later
commits.
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 07:17:39 UTC (rev 9966)
+++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 08:06:18 UTC (rev 9967)
@@ -659,12 +659,11 @@
<sect3>
<title>Portlet Class</title>
<para>
- Included in the <ulink
- url="http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/bundles/HelloWorl...">
- download bundle</ulink> you should have one java source file:
- <literal>HelloWorldJSPPortlet\src\main\org\jboss\portlet\hello\HelloWorldJSPPortlet.java</literal>,
- containing the following:
- <programlisting><![CDATA[package org.jboss.portlet.hello;
+ The <ulink url="http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/bundles/HelloWorl...">HelloWorldJSPPortlet</ulink> contains a <filename>HelloWorldJSPPortlet/src/main/org/jboss/portlet/hello/HelloWorldJSPPortlet.java</filename> file:
+ </para>
+ <para>
+<screen><![CDATA[
+package org.jboss.portlet.hello;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
@@ -727,24 +726,27 @@
.getRequestDispatcher("/WEB-INF/jsp/edit.jsp");
prd.include(rRequest, rResponse);
}
-}]]></programlisting>
- Now let's look at some of our methods:
- <itemizedlist>
- <listitem>
- <para>
- <programlisting><![CDATA[protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) { ... }
+}]]>
+</screen>
+</para>
+<para>
+ <variablelist>
+ <varlistentry><term><screen><![CDATA[
+protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) { ... }
// And
-protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) { ... } ]]></programlisting>
- Support for these Modes must be declared in the portlet.xml. They will be triggered when a user
- clicks on the respective icons in the portlet window titlebar, or through generated links within
- the portlet.
- </para>
- </listitem>
- <listitem>
- <para>
- <programlisting><![CDATA[public void processAction(ActionRequest aRequest, ActionResponse aResponse)
+protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) { ... } ]]>
+</screen></term>
+<listitem>
+ <para>
+ Support for these modes must be declared in the <filename>HelloWorldJSPPortlet/WEB-INF/portlet.xml</filename> file. They will be triggered when a user clicks on the respective icons in the portlet window titlebar, or through generated links within the portlet.
+ </para>
+</listitem>
+</varlistentry>
+<variablelist>
+ <varlistentry><term><screen><![CDATA[
+public void processAction(ActionRequest aRequest, ActionResponse aResponse)
throws PortletException, IOException, UnavailableException
{
String sYourname = (String) aRequest.getParameter("yourname");
@@ -752,9 +754,16 @@
// do something
aResponse.setRenderParameter("yourname", sYourname);
-}]]></programlisting>
- This method will be triggered upon clicking on an <literal>ActionURL</literal> from our
- <literal>view.jsp</literal>. It will retrieve <literal>yourname</literal> from the HTML form,
+}]]>
+</screen></term>
+<listitem>
+ <para>
+ This method is triggered when a user clicks on an <computeroutput>actionURL</computeroutput>, which is defined in the <filename>HelloWorldJSPPortlet/WEB-INF/jsp/view.jsp</filename> file. This retrieves <computeroutput>yourname</computeroutput> from the HTML form, and passes it as a <literal>renderParameter</literal> to the <literal>doView()</literal> method.
+ </para>
+</listitem>
+</varlistentry>
+
+ It will retrieve <literal>yourname</literal> from the HTML form,
and pass it along as a <literal>renderParameter</literal> to the <literal>doView()</literal>
method.
</para>
16 years, 9 months
JBoss Portal SVN: r9966 - docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: mmcallis
Date: 2008-02-14 02:17:39 -0500 (Thu, 14 Feb 2008)
New Revision: 9966
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
Log:
minor revisions for:
5.2.2. An Example JSP Portlet
5.2.2.1. Introduction
5.2.2.2. Package Content
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 03:01:12 UTC (rev 9965)
+++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 07:17:39 UTC (rev 9966)
@@ -141,7 +141,7 @@
<sect3>
<title>Introduction</title>
<para>
- This section details deploying your first portlet in JBoss Portal. Before proceeding, download the <ulink
+ This section describes how to deploy a portlet in JBoss Portal. Before proceeding, download the <ulink
url="http://anonsvn.jboss.org/repos/portletswap/portlets/2_6/bundles/HelloWorl...">HelloWorldPortlet</ulink> from <ulink url="http://labs.jboss.com/portletswap/">JBoss PortletSwap</ulink>.
</para>
</sect3>
@@ -264,7 +264,7 @@
</mediaobject>
</para>
<para>
- The following is an example of the <filename>HelloWorldPortlet/WEB-INF/portlet.xml</filename> file. Note: in order to create the <filename>WEB-INF</filename> and <filename>META-INF</filename> directories, extract the <filename>helloworldportlet.war</filename> file:
+ The following is an example of the <filename>HelloWorldPortlet/WEB-INF/portlet.xml</filename> file:
</para>
<para>
<screen><![CDATA[
@@ -289,7 +289,7 @@
</screen>
</para>
<para>
- This file must adhere to its definition in the JSR-168 Portlet Specification. You may define more than one portlet application in this file.
+ In order to create the <filename>WEB-INF</filename> and <filename>META-INF</filename> directories, extract the <filename>helloworldportlet.war</filename> file.This file must adhere to its definition in the JSR-168 Portlet Specification. You may define more than one portlet application in this file.
</para>
<para>
<variablelist>
@@ -597,12 +597,12 @@
</para>
<para>
<screen><![CDATA[
-INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet,
+INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet,
warUrl=.../tmp/deploy/tmp35219helloworldportlet-exp.war/]]>
</screen>
</para>
<para>
- To see the HelloWorldPortlet, navigate to <ulink url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>, or, if the default JBoss Portal page is already open, refresh the page. The HelloWorldPortlet is added to the default JBoss Portal page:
+ To see the HelloWorldPortlet, navigate to <ulink url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>, or, if the default JBoss Portal page is already open, refresh the page. The HelloWorldPortlet is added to the bottom of the default JBoss Portal page:
</para>
<para>
<mediaobject>
@@ -626,39 +626,34 @@
<screen><![CDATA[
INFO [TomcatDeployer] undeploy, ctxPath=/helloworldportlet,
warUrl=.../deploy/helloworldportlet.war/
-INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet,
+INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet,
warUrl=.../deploy/helloworldportlet.war/]]>
</screen>
</para>
</sect3>
</sect2>
<sect2>
- <title>A Simple JSP Portlet</title>
+ <title>An Example JSP Portlet</title>
<sect3>
<title>Introduction</title>
- <para>This section will introduce the reader to deploying a simple JSP portlet in JBoss Portal. It requires
- you download the HelloWorldJSPPortlet from PortletSwap.com, using this
- <ulink url="http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/bundles/HelloWorl...">
- link</ulink>.
+ <para>
+ This section describes how to deploy a JSP portlet in JBoss Portal. Before proceeding, download the <ulink url="http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/bundles/HelloWorl...">HelloWorldJSPPortlet</ulink> from <ulink url="http://labs.jboss.com/portletswap/">JBoss PortletSwap</ulink>. The HelloWorldJSPPortlet demonstrates how to use JSPs for view rendering, and the portlet taglib for generating links.
</para>
- <para>
- This portlet will introduce you to using JSPs for view rendering and the portlet taglib for generating
- links.
- </para>
</sect3>
<sect3>
- <title>Package content</title>
+ <title>Package Content</title>
<para>
- The application descriptors for this portlet are similar to the ones we saw in
- <xref linkend="first_portlet_descriptors"/>. See the <xref linkend="descriptors_portlet"/> chapter on
- descriptors for more details.
+ The application descriptors for the HelloWorldJSPPortlet portlet are similar to those from the HelloWorldPortlet (<xref linkend="first_portlet_descriptors"/>). See <xref linkend="descriptors_portlet"/> for further details about application descriptors.
+ </para>
+ <para>
+ The following is an example of the directory structure of the HelloWorldJSPPortlet portlet. The HelloWorldJSPPortlet portlet contains the traditional portlet and JBoss Portal specific application descriptors:
+ </para>
+ <para>
<mediaobject>
<imageobject>
<imagedata align="center" fileref="images/tutorials/jsp_portlet/package.gif" valign="middle"/>
</imageobject>
</mediaobject>
- As you can see in the figure above, the package content is what you'd expect from a traditional web
- application augmented with the portlet- and JBoss Portal-specific application descriptors.
</para>
</sect3>
<sect3>
16 years, 9 months
JBoss Portal SVN: r9965 - docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules.
by portal-commits@lists.jboss.org
Author: mmcallis
Date: 2008-02-13 22:01:12 -0500 (Wed, 13 Feb 2008)
New Revision: 9965
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/installation.xml
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
Log:
5.2.1.6. Deploying your Portlet
revising section
updating previous pages with ulinks to
localhost:8080/portal
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml
===================================================================
--- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml 2008-02-14 02:00:29 UTC (rev 9964)
+++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml 2008-02-14 03:01:12 UTC (rev 9965)
@@ -38,7 +38,7 @@
</para>
<para>
<warning>
- <title>Root user Privileges</title>
+ <title>Root User Privileges</title>
<para>
Linux systems require root user privileges to run a server on a port less than 1024. Starting JBoss EAP or JBoss AS on port 80 as a non-privileged user will not work. Running JBoss EAP or JBoss AS as the root user could lead to security breaches.
</para>
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/installation.xml
===================================================================
--- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/installation.xml 2008-02-14 02:00:29 UTC (rev 9964)
+++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/installation.xml 2008-02-14 03:01:12 UTC (rev 9965)
@@ -30,7 +30,7 @@
</listitem>
<listitem>
<para>
- <emphasis role="bold">Log in to JBoss Portal:</emphasis> using a Web browser, navigate to <computeroutput>http://localhost:8080/portal</computeroutput> to open the JBoss Portal homepage. Log in using one of the two default accounts: username <emphasis>user</emphasis>, password <emphasis>user</emphasis>, or username <emphasis>admin</emphasis>, password <emphasis>admin</emphasis>.
+ <emphasis role="bold">Log in to JBoss Portal:</emphasis> using a Web browser, navigate to <ulink url="http://localhost:8080/portal"></ulink> to open the JBoss Portal homepage. Log in using one of the two default accounts: username <emphasis>user</emphasis>, password <emphasis>user</emphasis>, or username <emphasis>admin</emphasis>, password <emphasis>admin</emphasis>.
</para>
</listitem>
</orderedlist>
@@ -166,7 +166,7 @@
</listitem>
<listitem>
<para>
- <emphasis role="bold">Log in to JBoss Portal:</emphasis> using a Web browser, navigate to <computeroutput>http://localhost:8080/portal</computeroutput> to open the JBoss Portal homepage. Log in using one of the two default accounts: username <emphasis>user</emphasis>, password <emphasis>user</emphasis>, or username <emphasis>admin</emphasis>, password <emphasis>admin</emphasis>:
+ <emphasis role="bold">Log in to JBoss Portal:</emphasis> using a Web browser, navigate to <ulink url="http://localhost:8080/portal"></ulink> to open the JBoss Portal homepage. Log in using one of the two default accounts: username <emphasis>user</emphasis>, password <emphasis>user</emphasis>, or username <emphasis>admin</emphasis>, password <emphasis>admin</emphasis>:
</para>
<para>
<mediaobject>
@@ -259,7 +259,7 @@
</imageobject>
</mediaobject>
<para>
- If the source files were obtained from SVN, change into the <filename>trunk/src/</filename> directory to see the directories from the above image. As well, there will be an empty <filename>thirdparty</filename> directory. This directory will contain files after building the JBoss Portal source code (<xref linkend="building_deploying_from_source" />). For more information about the JBoss Portal SVN repository, and accessing different versions of the JBoss Portal codebase, please visit the <ulink url="http://wiki.jboss.org/wiki/Wiki.jsp?page=PortalSVNRepo">JBoss Portal SVN Repo</ulink> page on the JBoss Wiki.
+ If the source files were obtained from SVN, change into the <filename>trunk/src/</filename> directory to see the directories from the above image. As well, there will be an empty <filename>thirdparty</filename> directory. This directory will contain files after building the JBoss Portal source code (see <xref linkend="building_deploying_from_source" />). For more information about the JBoss Portal SVN repository, and accessing different versions of the JBoss Portal codebase, please visit the <ulink url="http://wiki.jboss.org/wiki/Wiki.jsp?page=PortalSVNRepo">JBoss Portal SVN Repo</ulink> page on the JBoss Wiki.
</para>
</sect2>
<sect2>
@@ -482,7 +482,7 @@
</listitem>
<listitem>
<para>
- <emphasis role="bold">Log in to JBoss Portal:</emphasis> using a Web browser, navigate to <computeroutput>http://localhost:8080/portal</computeroutput> to open the JBoss Portal homepage. Log in using one of the two default accounts: username <emphasis>user</emphasis>, password <emphasis>user</emphasis>, or username <emphasis>admin</emphasis>, password <emphasis>admin</emphasis>:
+ <emphasis role="bold">Log in to JBoss Portal:</emphasis> using a Web browser, navigate to <ulink url="http://localhost:8080/portal"></ulink> to open the JBoss Portal homepage. Log in using one of the two default accounts: username <emphasis>user</emphasis>, password <emphasis>user</emphasis>, or username <emphasis>admin</emphasis>, password <emphasis>admin</emphasis>:
</para>
<para>
<mediaobject>
Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml
===================================================================
--- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 02:00:29 UTC (rev 9964)
+++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorials.xml 2008-02-14 03:01:12 UTC (rev 9965)
@@ -532,6 +532,11 @@
</listitem>
<listitem>
<para>
+ If required, edit the <filename>HelloWorldPortlet/src/main/org/jboss/portlet/hello/HelloWorldPortlet.java</filename> file, and the XML descriptors in the <filename>HelloWorldPortlet/src/resources/helloworldportlet-war/WEB-INF/</filename> directory.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
Run the <command>ant deploy</command> command:
</para>
<para>
@@ -585,7 +590,7 @@
<sect3>
<title>Deploying your Portlet</title>
<para>
- If you did not expand the <filename>helloworldportlet.war</filename> file, copy the <filename>HelloWorldPortlet/helloworldportlet.war</filename> file into the correct JBoss AS or JBoss EAP <filename>deploy/</filename> directory. If you expanded the <filename>helloworldportlet.war</filename> file, copy the <filename>HelloWorldPortlet/output/lib/exploded/helloworldportlet.war/</filename> directory into the correct JBoss AS or JBoss EAP <filename>deploy/</filename> directory. For example, if you are using JBoss AS, copy the file or directory into the <filename>$JBOSS_HOME/server/default/deploy/</filename> directory.
+ If you did not expand the <filename>helloworldportlet.war</filename> file, copy the <filename>HelloWorldPortlet/helloworldportlet.war</filename> file into the correct JBoss AS or JBoss EAP <filename>deploy/</filename> directory. If you expanded the <filename>helloworldportlet.war</filename> file, copy the <filename>HelloWorldPortlet/output/lib/exploded/helloworldportlet.war/</filename> directory into the correct JBoss AS or JBoss EAP <filename>deploy/</filename> directory. For example, if you are using JBoss AS, copy the war file or the expanded directory into the <filename>$JBOSS_HOME/server/default/deploy/</filename> directory.
</para>
<para>
Performing this step on a running instance of JBoss AS or JBoss EAP, and JBoss Portal, will trigger a hot-deploy of the portlet:
@@ -593,11 +598,11 @@
<para>
<screen><![CDATA[
INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet,
- warUrl=.../tmp/deploy/tmp35219helloworldportlet-exp.war/]]>
+warUrl=.../tmp/deploy/tmp35219helloworldportlet-exp.war/]]>
</screen>
</para>
<para>
- To see the HelloWorldPortlet, navigate to <ulink url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>, or, if the main JBoss Portal page is already open, refresh the page. The HelloWorldPortlet is added to the default page of JBoss Portal:
+ To see the HelloWorldPortlet, navigate to <ulink url="http://localhost:8080/portal/">http://localhost:8080/portal/</ulink>, or, if the default JBoss Portal page is already open, refresh the page. The HelloWorldPortlet is added to the default JBoss Portal page:
</para>
<para>
<mediaobject>
@@ -615,7 +620,7 @@
</screen>
</para>
<para>
- Re-deploying the HelloWorldPortlet will produce the following output on the JBoss AS or JBoss EAP console:
+ Re-deploying the HelloWorldPortlet will produce output to the JBoss AS or JBoss EAP console, similar to the following:
</para>
<para>
<screen><![CDATA[
16 years, 9 months
JBoss Portal SVN: r9964 - modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-02-13 21:00:29 -0500 (Wed, 13 Feb 2008)
New Revision: 9964
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java
Log:
- Fixed remote control window that was still referencing /simple context.
- Use namespace for javascript functions.
Modified: modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java
===================================================================
--- modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java 2008-02-14 01:28:51 UTC (rev 9963)
+++ modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/portal/samples/RemoteControlResourcePortlet.java 2008-02-14 02:00:29 UTC (rev 9964)
@@ -31,9 +31,11 @@
{
renderResponse.setContentType("text/html");
PrintWriter printWriter = renderResponse.getWriter();
- printWriter.print("<script type='text/javascript'>function openRemote(url){window.name='jbp_parent';" +
- "window.open(url, 'jbp_remote', 'width=400,height=200,scrollable=yes')}</script>");
- printWriter.print("<p><a href='#' onclick=\"openRemote('");
+ String namespace = renderResponse.getNamespace();
+ printWriter.print("<script type='text/javascript'>function " + namespace
+ + "_openRemote(url){window.name='" + namespace + "_parent';window.open(url, '" + namespace
+ + "_remote', 'width=400,height=200,scrollable=yes')}</script>");
+ printWriter.print("<p><a href='#' onclick=\"" + namespace + "_openRemote('");
ResourceURL resource = renderResponse.createResourceURL();
printWriter.print(resource);
printWriter.print("')\">Open remote control!</a></p>");
@@ -47,19 +49,20 @@
{
resourceResponse.setContentType("text/html");
PrintWriter writer = resourceResponse.getWriter();
+ String namespace = resourceResponse.getNamespace();
// resourceRequest.getPreferences().setValue("color", COLORS[COLOR_INDEX++ % 8]);
- writer.print("<html><head><script type='text/javascript'>function openLinkInParent(url){window.open(url,'jbp_parent');}</script>" +
- "<link rel=\"stylesheet\" href=\"/simple/css/master.css\" type=\"text/css\"/></head><body>");
+ writer.print("<html><head><script type='text/javascript'>function openLinkInParent(url){window.open(url,'"
+ + namespace + "_parent');}</script>\n<link rel=\"stylesheet\" href='/simple-portal/css/master.css' type=\"text/css\"/></head><body>");
PortletURL url = resourceResponse.createRenderURL();
url.setWindowState(WindowState.MINIMIZED);
writer.print("<div class=\"remote-container\"><ul><li><a href='#' onclick=\"" + createParentURL(url) + "\"><img\n" +
- " src=\"/simple/images/icon-minimize.gif\" alt=\"\"/> minimize parent portlet</a></li>");
+ " src=\"/simple-portal/images/icon-minimize.gif\" alt=\"\"/> minimize parent portlet</a></li>");
url.setWindowState(WindowState.MAXIMIZED);
writer.print("<li><a href='#' onclick=\"" + createParentURL(url) + "\"><img\n" +
- " src=\"/simple/images/icon-maximize.gif\" alt=\"\"/> maximize parent portlet</a></li>");
+ " src=\"/simple-portal/images/icon-maximize.gif\" alt=\"\"/> maximize parent portlet</a></li>");
url.setWindowState(WindowState.NORMAL);
writer.print("<li><a href='#' onclick=\"" + createParentURL(url) + "\"><img\n" +
- " src=\"/simple/images/icon-normal.gif\" alt=\"\"/> make parent portlet normal</a></li></ul>");
+ " src=\"/simple-portal/images/icon-normal.gif\" alt=\"\"/> make parent portlet normal</a></li></ul>");
writer.print("<br/><ul><li><b>'zipcode'</b> public render parameter value: " + resourceRequest.getParameter(ZIPCODE) + "<br/>");
writer.print("Set value of <b>'zipcode'</b> public render parameter to:</li>");
url.setParameter(ZIPCODE, "80201");
16 years, 9 months
JBoss Portal SVN: r9963 - in modules/portlet/trunk/build: distrib and 1 other directory.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-02-13 20:28:51 -0500 (Wed, 13 Feb 2008)
New Revision: 9963
Added:
modules/portlet/trunk/build/distrib/
modules/portlet/trunk/build/distrib/README.txt
modules/portlet/trunk/build/distrib/distrib.xml
Log:
- Started distribution build.
Added: modules/portlet/trunk/build/distrib/README.txt
===================================================================
--- modules/portlet/trunk/build/distrib/README.txt (rev 0)
+++ modules/portlet/trunk/build/distrib/README.txt 2008-02-14 01:28:51 UTC (rev 9963)
@@ -0,0 +1,15 @@
+
+JBoss Portlet Container
+LGPL Licensed (See http://www.gnu.org/copyleft/lesser.html for details on the product usage)
+
+JBoss Portlet Container is the next generation portlet container on which future versions of JBoss
+Portal will be based. It provides a standard-compliant implementation of the JSR-286 Portlet 2.0
+specification. It has been developed with reusability in mind so that advanced users, who don't require
+a full-fledged portal, can leverage the portlet management services it provides in their own applications.
+JBoss Portlet Container is available through the business-friendly LGPL open source license.
+
+This distribution also contains a simple portal built on top of JBoss Portlet Container. This simple
+portal can be run on Tomcat 6.x and JBoss Application Server 4.2.x.
+
+INSTALLATION AND RUNNING:
+For installation, please refer to the user guide available in the 'docs' directory
\ No newline at end of file
Property changes on: modules/portlet/trunk/build/distrib/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: modules/portlet/trunk/build/distrib/distrib.xml
===================================================================
--- modules/portlet/trunk/build/distrib/distrib.xml (rev 0)
+++ modules/portlet/trunk/build/distrib/distrib.xml 2008-02-14 01:28:51 UTC (rev 9963)
@@ -0,0 +1,162 @@
+<project default="all" name="JBoss Portlet Container">
+
+ <property name="source.dir" value="../.."/>
+ <property name="docs.dir" value="${source.dir}/docs"/>
+ <property name="release.version" value="2.0.B1"/>
+
+ <!-- -->
+ <property name="pc.release.name" value="jboss-pc-${release.version}"/>
+ <property name="pc.release.name.src" value="${pc.release.name}-src"/>
+ <property name="pc.release.name.as42" value="${pc.release.name}-jbossas42"/>
+ <property name="pc.release.name.tomcat6" value="${pc.release.name}-tomcat6"/>
+
+ <!-- -->
+ <property name="pc.build.src" value="output/${pc.release.name.src}"/>
+ <property name="pc.build.bin.as42" value="output/${pc.release.name.as42}"/>
+ <property name="pc.build.bin.tomcat6" value="output/${pc.release.name.tomcat6}"/>
+
+ <property environment="env"/>
+
+ <!-- Clean -->
+ <target name="clean">
+ <delete dir="output"/>
+ </target>
+
+ <!-- Build and compress everything -->
+ <target name="all" depends="licenses,build,package,zip" description="do everything - build source, doc, distro"/>
+
+ <!-- Licenses -->
+ <target name="licenses" unless="no-doc">
+ <!--<fileset id="thirdparty-licenses" dir="../thirdparty/licenses">
+ <include name="apache-2.0.txt"/>
+ <include name="bsd.txt"/>
+ <include name="cddl.txt"/>
+ <include name="cpl-1.0/txt"/>
+ <include name="gpl.txt"/>
+ <include name="lgpl.txt"/>
+ <include name="oswego.txt"/>
+ <include name="public-domain.txt"/>
+ <include name="sun-jaf.txt"/>
+ </fileset>-->
+ <mkdir dir="output/docs/licenses"/>
+ <!--<concat destfile="output/docs/licenses/thirdparty-licenses.txt">
+ <fileset refid="thirdparty-licenses"/>
+ </concat>-->
+ <copy todir="output/docs/licenses">
+ <!--<fileset refid="thirdparty-licenses"/>-->
+ <fileset dir="../licences" includes="JBossEULA.txt"/>
+ </copy>
+ </target>
+
+ <!-- Build JBoss Portlet Container (currently only builds docs as maven build is assumed -->
+ <target name="build" depends="doc.build"/>
+
+ <!-- Build JBoss Portlet Container documentation -->
+ <target name="doc.build" unless="no-doc">
+ <sequential>
+ <ant dir="${docs.dir}/user-guide" antfile="build.xml"/>
+ </sequential>
+ </target>
+
+ <!-- Package the different distributions -->
+ <target name="package">
+
+ <!-- Create the output directory -->
+ <mkdir dir="output"/>
+
+ <antcall target="package-src"/>
+ <antcall target="package-as42"/>
+ <antcall target="package-tomcat6"/>
+ </target>
+
+ <!--
+ | JBoss Portlet Container source distribution
+ -->
+ <target name="package-src" description="package source distribution">
+ <antcall target="__package-distrib">
+ <param name="todir" value="${pc.build.src}"/>
+ </antcall>
+ <copy todir="${pc.build.src}">
+ <fileset dir="${source.dir}" includes="**/*"
+ excludes="**/target/**,**/.svn/*,**/*.iml,**/*.ipr,**/*.iws,results.txt"/>
+ </copy>
+ </target>
+
+ <!--
+ | JBoss Portlet Container binary distribution for AS 4.2.x
+ -->
+ <target name="package-as42" description="package AS binary">
+ <antcall target="__package-binary">
+ <param name="bin.dir" value="${pc.build.bin.as42}"/>
+ </antcall>
+ <copy todir="${pc.build.bin.as42}/simple-portal">
+ <fileset dir="${source.dir}/test/target/portal/as42/simple-portal" includes="**/*"/>
+ </copy>
+ </target>
+
+ <!--
+ | JBoss Portlet Container binary distribution for Tomcat 6.x
+ -->
+ <target name="package-tomcat6" description="package Tomcat binary">
+ <antcall target="__package-binary">
+ <param name="bin.dir" value="${pc.build.bin.tomcat6}"/>
+ </antcall>
+ <copy todir="${pc.build.bin.tomcat6}/simple-portal">
+ <fileset dir="${source.dir}/test/target/portal/tomcat" includes="**/*"/>
+ </copy>
+ </target>
+
+ <!-- Compress packages -->
+ <target name="zip" unless="no-zip">
+ <antcall target="__zip">
+ <param name="release.name" value="${pc.release.name.src}"/>
+ </antcall>
+ <antcall target="__zip">
+ <param name="release.name" value="${pc.release.name.as42}"/>
+ </antcall>
+ <antcall target="__zip">
+ <param name="release.name" value="${pc.release.name.tomcat6}"/>
+ </antcall>
+ </target>
+
+ <!--
+ | Internal tasks
+ -->
+ <target name="__package-binary">
+ <antcall target="__package-distrib">
+ <param name="todir" value="${bin.dir}"/>
+ </antcall>
+ <mkdir dir="${bin.dir}/lib"/>
+ <copy todir="${bin.dir}/lib" flatten="true">
+ <fileset dir="${source.dir}" includes="**/target/*.jar" excludes="**/*sources.jar"/>
+ </copy>
+ </target>
+
+ <target name="__package-distrib">
+ <mkdir dir="${todir}"/>
+ <antcall target="__package-doc">
+ <param name="todir" value="${todir}/docs"/>
+ </antcall>
+ </target>
+
+ <target name="__package-doc" unless="no-doc">
+ <sequential>
+ <mkdir dir="${todir}"/>
+ <mkdir dir="${todir}/user-guide"/>
+ <copy todir="${todir}/user-guide">
+ <fileset dir="${docs.dir}/user-guide/build/en/"/>
+ </copy>
+ <copy file="README.txt" todir="${todir}"/>
+ <!--<copy todir="${todir}/docs/licenses">
+ <fileset dir="output/docs/licenses"/>
+ </copy>-->
+ </sequential>
+ </target>
+
+ <target name="__zip">
+ <tar destfile="output/${release.name}.tar.gz" compression="gzip">
+ <tarfileset prefix="${release.name}" filemode="775" dir="output/${release.name}"/>
+ </tar>
+ <checksum file="output/${release.name}.tar.gz"/>
+ </target>
+</project>
Property changes on: modules/portlet/trunk/build/distrib/distrib.xml
___________________________________________________________________
Name: svn:executable
+ *
16 years, 9 months