Author: thomas.heute(a)jboss.com
Date: 2008-07-09 08:16:31 -0400 (Wed, 09 Jul 2008)
New Revision: 11364
Added:
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/default-object.xml
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet-instances.xml
Modified:
examples/trunk/SimplestHelloWorld/.classpath
examples/trunk/SimplestHelloWorld/.project
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component
examples/trunk/SimplestHelloWorld/pom.xml
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml
Log:
minor
Modified: examples/trunk/SimplestHelloWorld/.classpath
===================================================================
--- examples/trunk/SimplestHelloWorld/.classpath 2008-07-09 12:06:52 UTC (rev 11363)
+++ examples/trunk/SimplestHelloWorld/.classpath 2008-07-09 12:16:31 UTC (rev 11364)
@@ -5,12 +5,12 @@
<classpathentry excluding="**" kind="src"
output="target/classes" path="src/main/resources"/>
<classpathentry excluding="**" kind="src"
output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con"
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency"
value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
- <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
- <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Modified: examples/trunk/SimplestHelloWorld/.project
===================================================================
--- examples/trunk/SimplestHelloWorld/.project 2008-07-09 12:06:52 UTC (rev 11363)
+++ examples/trunk/SimplestHelloWorld/.project 2008-07-09 12:16:31 UTC (rev 11364)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>HelloWorld</name>
+ <name>SimplestHelloWorldPortlet</name>
<comment></comment>
<projects>
</projects>
Modified: examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component
===================================================================
---
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component 2008-07-09
12:06:52 UTC (rev 11363)
+++
examples/trunk/SimplestHelloWorld/.settings/org.eclipse.wst.common.component 2008-07-09
12:16:31 UTC (rev 11364)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
-<wb-module deploy-name="HelloWorld">
+<wb-module deploy-name="SimplestHelloWorldPortlet">
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src/main/resources"/>
<wb-resource deploy-path="/" source-path="/src/test/java"/>
<wb-resource deploy-path="/"
source-path="/src/test/resources"/>
-<property name="context-root" value="HelloWorld"/>
<property name="java-output-path" value="build/classes"/>
+<property name="context-root"
value="SimplestHelloWorldPortlet"/>
</wb-module>
</project-modules>
Modified: examples/trunk/SimplestHelloWorld/pom.xml
===================================================================
--- examples/trunk/SimplestHelloWorld/pom.xml 2008-07-09 12:06:52 UTC (rev 11363)
+++ examples/trunk/SimplestHelloWorld/pom.xml 2008-07-09 12:16:31 UTC (rev 11364)
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.portal.example</groupId>
- <artifactId>HelloWorld</artifactId>
+ <artifactId>SimplestHelloWorld</artifactId>
<packaging>war</packaging>
<name />
<version>0.0.1</version>
Modified:
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java
===================================================================
---
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java 2008-07-09
12:06:52 UTC (rev 11363)
+++
examples/trunk/SimplestHelloWorld/src/main/java/org/jboss/portal/portlet/samples/SimplestHelloWorldPortlet.java 2008-07-09
12:16:31 UTC (rev 11364)
@@ -26,28 +26,16 @@
import java.io.PrintWriter;
import javax.portlet.GenericPortlet;
-import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
-/**
- * @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
- * @version $Revision$
- */
public class SimplestHelloWorldPortlet extends GenericPortlet
{
- public void doView(RenderRequest request, RenderResponse response) throws
PortletException
+ public void doView(RenderRequest request, RenderResponse response) throws IOException
{
- try
- {
- PrintWriter writer = response.getWriter();
- writer.write("Hello World !");
- writer.close();
- }
- catch (IOException e)
- {
- throw new PortletException(e);
- }
+ PrintWriter writer = response.getWriter();
+ writer.write("Hello World !");
+ writer.close();
}
}
Added: examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/default-object.xml
===================================================================
--- examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/default-object.xml
(rev 0)
+++
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/default-object.xml 2008-07-09
12:16:31 UTC (rev 11364)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portal Object 2.6//EN"
+ "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
+<deployments>
+ <deployment>
+ <parent-ref>default</parent-ref>
+ <if-exists>overwrite</if-exists>
+ <page>
+ <page-name>SimplestHelloWorld</page-name>
+ <window>
+ <window-name>SimplestHelloWorldWindow</window-name>
+ <instance-ref>SimplestHelloWorldInstance</instance-ref>
+ <region>center</region>
+ <height>0</height>
+ </window>
+ </page>
+ </deployment>
+</deployments>
\ No newline at end of file
Property changes on:
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/default-object.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet-instances.xml
===================================================================
--- examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet-instances.xml
(rev 0)
+++
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet-instances.xml 2008-07-09
12:16:31 UTC (rev 11364)
@@ -0,0 +1,34 @@
+<?xml version="1.0" standalone="yes"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+<!DOCTYPE deployments PUBLIC
+ "-//JBoss Portal//DTD Portlet Instances 2.6//EN"
+ "http://www.jboss.org/portlet/dtd/portlet-instances_2_6.dtd">
+<deployments>
+ <deployment>
+ <instance>
+ <instance-id>SimplestHelloWorldInstance</instance-id>
+ <portlet-ref>SimplestHelloWorldPortlet</portlet-ref>
+ </instance>
+ </deployment>
+</deployments>
\ No newline at end of file
Property changes on:
examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet-instances.xml
___________________________________________________________________
Name: svn:executable
+ *
Modified: examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml 2008-07-09
12:06:52 UTC (rev 11363)
+++ examples/trunk/SimplestHelloWorld/src/main/webapp/WEB-INF/portlet.xml 2008-07-09
12:16:31 UTC (rev 11364)
@@ -5,7 +5,7 @@
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="2.0">
<portlet>
- <portlet-name>HelloWorldPortlet</portlet-name>
+ <portlet-name>SimplestHelloWorldPortlet</portlet-name>
<portlet-class>
org.jboss.portal.portlet.samples.SimplestHelloWorldPortlet
</portlet-class>