Author: thomas.heute(a)jboss.com
Date: 2008-07-09 14:04:24 -0400 (Wed, 09 Jul 2008)
New Revision: 11378
Removed:
examples/trunk/JSFHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
Modified:
examples/trunk/JSFHelloUser/.project
examples/trunk/JSFHelloUser/pom.xml
examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/default-object.xml
examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet-instances.xml
examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet.xml
Log:
Starting up JSF Hello User
Modified: examples/trunk/JSFHelloUser/.project
===================================================================
--- examples/trunk/JSFHelloUser/.project 2008-07-09 18:00:40 UTC (rev 11377)
+++ examples/trunk/JSFHelloUser/.project 2008-07-09 18:04:24 UTC (rev 11378)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>HelloWorld</name>
+ <name>JSFHelloUser</name>
<comment></comment>
<projects>
</projects>
Modified: examples/trunk/JSFHelloUser/pom.xml
===================================================================
--- examples/trunk/JSFHelloUser/pom.xml 2008-07-09 18:00:40 UTC (rev 11377)
+++ examples/trunk/JSFHelloUser/pom.xml 2008-07-09 18:04:24 UTC (rev 11378)
@@ -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>JSPHelloUser</artifactId>
+ <artifactId>JSFHelloUser</artifactId>
<packaging>war</packaging>
<name />
<version>0.0.1</version>
Deleted:
examples/trunk/JSFHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
---
examples/trunk/JSFHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2008-07-09
18:00:40 UTC (rev 11377)
+++
examples/trunk/JSFHelloUser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2008-07-09
18:04:24 UTC (rev 11378)
@@ -1,78 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2008, 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. *
- ******************************************************************************/
-package org.jboss.portal.portlet.samples;
-
-import java.io.IOException;
-
-import javax.portlet.ActionRequest;
-import javax.portlet.ActionResponse;
-import javax.portlet.GenericPortlet;
-import javax.portlet.PortletException;
-import javax.portlet.PortletRequestDispatcher;
-import javax.portlet.RenderRequest;
-import javax.portlet.RenderResponse;
-import javax.portlet.UnavailableException;
-
-public class JSPHelloUserPortlet extends GenericPortlet
-{
-
- public void doView(RenderRequest request, RenderResponse response) throws
PortletException, IOException
- {
- String sYourName = (String) request.getParameter("yourname");
- if (sYourName != null)
- {
- request.setAttribute("yourname", sYourName);
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
- }
-
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws
PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
- protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException,
- UnavailableException
- {
- rResponse.setContentType("text/html");
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/jsp/help.jsp");
- prd.include(rRequest, rResponse);
- }
-
- protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) throws
PortletException, IOException,
- UnavailableException
- {
- rResponse.setContentType("text/html");
- PortletRequestDispatcher prd =
getPortletContext().getRequestDispatcher("/jsp/edit.jsp");
- prd.include(rRequest, rResponse);
- }
-
-}
Modified: examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/default-object.xml
===================================================================
--- examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/default-object.xml 2008-07-09
18:00:40 UTC (rev 11377)
+++ examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/default-object.xml 2008-07-09
18:04:24 UTC (rev 11378)
@@ -30,10 +30,10 @@
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
<page>
- <page-name>JSPHelloUser</page-name>
+ <page-name>JSFHelloUser</page-name>
<window>
- <window-name>JSPHelloUserWindow</window-name>
- <instance-ref>JSPHelloUserInstance</instance-ref>
+ <window-name>JSFHelloUserWindow</window-name>
+ <instance-ref>JSFHelloUserInstance</instance-ref>
<region>center</region>
<height>0</height>
</window>
Modified: examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet-instances.xml
===================================================================
--- examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet-instances.xml 2008-07-09
18:00:40 UTC (rev 11377)
+++ examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet-instances.xml 2008-07-09
18:04:24 UTC (rev 11378)
@@ -27,8 +27,8 @@
<deployments>
<deployment>
<instance>
- <instance-id>JSPHelloUserInstance</instance-id>
- <portlet-ref>JSPHelloUserPortlet</portlet-ref>
+ <instance-id>JSFHelloUserInstance</instance-id>
+ <portlet-ref>JSFHelloUserPortlet</portlet-ref>
</instance>
</deployment>
</deployments>
\ No newline at end of file
Modified: examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet.xml 2008-07-09 18:00:40
UTC (rev 11377)
+++ examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/portlet.xml 2008-07-09 18:04:24
UTC (rev 11378)
@@ -5,7 +5,7 @@
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="2.0">
<portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
+ <portlet-name>JSFHelloUserPortlet</portlet-name>
<portlet-class>
org.jboss.portal.portlet.samples.JSPHelloUserPortlet
</portlet-class>
@@ -16,7 +16,7 @@
<mode>help</mode>
</supports>
<portlet-info>
- <title>JSP Hello User Portlet</title>
+ <title>JSF Hello User Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
\ No newline at end of file