gatein SVN: r2976 - in sandbox/mobile_delivery/trunk: portlet and 8 other directories.
by do-not-reply@jboss.org
Author: david.borruat
Date: 2010-05-04 11:35:00 -0400 (Tue, 04 May 2010)
New Revision: 2976
Added:
sandbox/mobile_delivery/trunk/portlet/iphone/
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/pom.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/pom.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/jsp/welcome.jsp
Removed:
sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/
sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/pom.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/pom.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/jsp/welcome.jsp
Log:
iphone portlets moved from examples to portlet
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld (from rev 2974, sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld)
Deleted: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/pom.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/pom.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <!--
- the parent isn't required, you can drop it if you add a groupId
- and version
- -->
- <!-- <parent>
- <groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>parent</artifactId>
- <version>3.0.0-unine-SNAPSHOT</version>
- </parent>
--->
- <groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-hellouser</artifactId>
- <version>3.0.0-unine-SNAPSHOT</version>
- <packaging>war</packaging>
- <name>GateIn Portal Examples - JSP Hello User Portlet</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>javax.portlet</groupId>
- <artifactId>portlet-api</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/pom.xml (from rev 2975, sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/pom.xml)
===================================================================
--- sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/pom.xml (rev 0)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/pom.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <!--
+ the parent isn't required, you can drop it if you add a groupId
+ and version
+ -->
+ <!-- <parent>
+ <groupId>org.gatein.portal.examples.portlets</groupId>
+ <artifactId>parent</artifactId>
+ <version>3.0.0-unine-SNAPSHOT</version>
+ </parent>
+-->
+ <groupId>org.gatein.portal.examples.portlets</groupId>
+ <artifactId>gatein-jsp-iphonehelloworld</artifactId>
+ <version>3.0.0-unine-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>GateIn Portal - JSP iPhone Hello World Portlet</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Deleted: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
-version="2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
- http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
- <portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>view</portlet-mode>
- <portlet-mode>edit</portlet-mode>
- <portlet-mode>help</portlet-mode>
- </supports>
- <portlet-info>
- <title>JSP Hello User Portlet</title>
- </portlet-info>
- </portlet>
-</portlet-app>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml (from rev 2975, sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml)
===================================================================
--- sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml (rev 0)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+version="2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
+ http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
+ <portlet>
+ <portlet-name>JSPIPhoneHelloWorldPortlet</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPIPhoneHelloWorldPortlet</portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>view</portlet-mode>
+ <portlet-mode>edit</portlet-mode>
+ <portlet-mode>help</portlet-mode>
+ </supports>
+ <portlet-info>
+ <title>JSP iPhone Hello World Portlet</title>
+ </portlet-info>
+ </portlet>
+</portlet-app>
\ No newline at end of file
Deleted: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp 2010-05-04 15:35:00 UTC (rev 2976)
@@ -1,37 +0,0 @@
-<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-
-<div class="portlet-section-header">Welcome !</div>
-
-<br/>
-
-<div class="portlet-font">
-
- Welcome on the JSP Hello User portlet,
-my name is JBoss Portal. What's yours ?</div>
-
-<br/>
-
-<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
-<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
-Please check the source code to see the difference with Method 1.
-<portlet:renderURL var="myRenderURL">
- <portlet:param name="yourname" value='John Doe'/>
-</portlet:renderURL>
-<br/>
-<a href="<%= myRenderURL %>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 3: We use a form:<br/>
-
-<portlet:actionURL var="myActionURL"/>
-<form action="<%= myActionURL %>" method="POST">
- <span class="portlet-form-field-label">Name:</span>
- <input class="portlet-form-input-field" type="text" name="yourname"/>
- <input class="portlet-form-button" type="Submit"/>
-</form>
-</div>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp (from rev 2975, sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp)
===================================================================
--- sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp (rev 0)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp 2010-05-04 15:35:00 UTC (rev 2976)
@@ -0,0 +1,6 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+<div class="portlet-font">
+Hello world portlet for iPhone !
+</div>
+
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu (from rev 2974, sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu)
Deleted: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/pom.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/pom.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <!--
- the parent isn't required, you can drop it if you add a groupId
- and version
- -->
- <!-- <parent>
- <groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>parent</artifactId>
- <version>3.0.0-unine-SNAPSHOT</version>
- </parent>
--->
- <groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-hellouser</artifactId>
- <version>3.0.0-unine-SNAPSHOT</version>
- <packaging>war</packaging>
- <name>GateIn Portal Examples - JSP Hello User Portlet</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>javax.portlet</groupId>
- <artifactId>portlet-api</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/pom.xml (from rev 2975, sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/pom.xml)
===================================================================
--- sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/pom.xml (rev 0)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/pom.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <!--
+ the parent isn't required, you can drop it if you add a groupId
+ and version
+ -->
+ <!-- <parent>
+ <groupId>org.gatein.portal.examples.portlets</groupId>
+ <artifactId>parent</artifactId>
+ <version>3.0.0-unine-SNAPSHOT</version>
+ </parent>
+-->
+ <groupId>org.gatein.portal.examples.portlets</groupId>
+ <artifactId>gatein-jsp-iPhonemenu</artifactId>
+ <version>3.0.0-unine-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>GateIn Portal - JSP iPhone Menu Portlet</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Deleted: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 15:35:00 UTC (rev 2976)
@@ -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)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
- }
-
- 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);
- }
-
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
-
-}
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java (from rev 2975, sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java)
===================================================================
--- sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java (rev 0)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java 2010-05-04 15:35:00 UTC (rev 2976)
@@ -0,0 +1,78 @@
+/******************************************************************************
+ * 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 JSPIPhoneMenuPortlet extends GenericPortlet
+{
+
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ String sYourName = (String) request.getParameter("yourname");
+ if (sYourName != null)
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
+ prd.include(request, response);
+ }
+ else
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+ prd.include(request, response);
+ }
+ }
+
+ 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);
+ }
+
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
+ UnavailableException
+ {
+ String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("yourname", sYourname);
+ }
+
+
+}
Deleted: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
-version="2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
- http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
- <portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>view</portlet-mode>
- <portlet-mode>edit</portlet-mode>
- <portlet-mode>help</portlet-mode>
- </supports>
- <portlet-info>
- <title>JSP Hello User Portlet</title>
- </portlet-info>
- </portlet>
-</portlet-app>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml (from rev 2975, sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml)
===================================================================
--- sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml (rev 0)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 15:35:00 UTC (rev 2976)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+version="2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
+ http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
+ <portlet>
+ <portlet-name>JSPIPhoneMenuPortlet</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPIPhoneMenuPortlet</portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>view</portlet-mode>
+ <portlet-mode>edit</portlet-mode>
+ <portlet-mode>help</portlet-mode>
+ </supports>
+ <portlet-info>
+ <title>JSP iPhone Menu Portlet</title>
+ </portlet-info>
+ </portlet>
+</portlet-app>
\ No newline at end of file
Deleted: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/jsp/welcome.jsp 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/jsp/welcome.jsp 2010-05-04 15:35:00 UTC (rev 2976)
@@ -1,37 +0,0 @@
-<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-
-<div class="portlet-section-header">Welcome !</div>
-
-<br/>
-
-<div class="portlet-font">
-
- Welcome on the JSP Hello User portlet,
-my name is JBoss Portal. What's yours ?</div>
-
-<br/>
-
-<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
-<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
-Please check the source code to see the difference with Method 1.
-<portlet:renderURL var="myRenderURL">
- <portlet:param name="yourname" value='John Doe'/>
-</portlet:renderURL>
-<br/>
-<a href="<%= myRenderURL %>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 3: We use a form:<br/>
-
-<portlet:actionURL var="myActionURL"/>
-<form action="<%= myActionURL %>" method="POST">
- <span class="portlet-form-field-label">Name:</span>
- <input class="portlet-form-input-field" type="text" name="yourname"/>
- <input class="portlet-form-button" type="Submit"/>
-</form>
-</div>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/jsp/welcome.jsp (from rev 2975, sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/jsp/welcome.jsp)
===================================================================
--- sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/jsp/welcome.jsp (rev 0)
+++ sandbox/mobile_delivery/trunk/portlet/iphone/iPhonemenu/src/main/webapp/jsp/welcome.jsp 2010-05-04 15:35:00 UTC (rev 2976)
@@ -0,0 +1,5 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+<div class="portlet-font">
+Menu portlet for iPhone.
+</div>
14 years, 8 months
gatein SVN: r2975 - in sandbox/mobile_delivery/trunk/examples/portlets: iPhonehelloworld/src/main/webapp/WEB-INF and 5 other directories.
by do-not-reply@jboss.org
Author: david.borruat
Date: 2010-05-04 11:24:41 -0400 (Tue, 04 May 2010)
New Revision: 2975
Added:
sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java
Removed:
sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
Modified:
sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/pom.xml
sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp
sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/pom.xml
sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/jsp/welcome.jsp
Log:
iPhone portlets ready
Modified: sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/pom.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/pom.xml 2010-05-04 15:24:41 UTC (rev 2975)
@@ -13,10 +13,10 @@
</parent>
-->
<groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-hellouser</artifactId>
+ <artifactId>gatein-jsp-iphonehelloworld</artifactId>
<version>3.0.0-unine-SNAPSHOT</version>
<packaging>war</packaging>
- <name>GateIn Portal Examples - JSP Hello User Portlet</name>
+ <name>GateIn Portal - JSP iPhone Hello World Portlet</name>
<build>
<plugins>
Modified: sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 15:24:41 UTC (rev 2975)
@@ -5,8 +5,8 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
+ <portlet-name>JSPIPhoneHelloWorldPortlet</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPIPhoneHelloWorldPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
@@ -14,7 +14,7 @@
<portlet-mode>help</portlet-mode>
</supports>
<portlet-info>
- <title>JSP Hello User Portlet</title>
+ <title>JSP iPhone Hello World Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
\ No newline at end of file
Modified: sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/src/main/webapp/jsp/welcome.jsp 2010-05-04 15:24:41 UTC (rev 2975)
@@ -1,37 +1,6 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-<div class="portlet-section-header">Welcome !</div>
-
-<br/>
-
<div class="portlet-font">
+Hello world portlet for iPhone !
+</div>
- Welcome on the JSP Hello User portlet,
-my name is JBoss Portal. What's yours ?</div>
-
-<br/>
-
-<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
-<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
-Please check the source code to see the difference with Method 1.
-<portlet:renderURL var="myRenderURL">
- <portlet:param name="yourname" value='John Doe'/>
-</portlet:renderURL>
-<br/>
-<a href="<%= myRenderURL %>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 3: We use a form:<br/>
-
-<portlet:actionURL var="myActionURL"/>
-<form action="<%= myActionURL %>" method="POST">
- <span class="portlet-form-field-label">Name:</span>
- <input class="portlet-form-input-field" type="text" name="yourname"/>
- <input class="portlet-form-button" type="Submit"/>
-</form>
-</div>
\ No newline at end of file
Modified: sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/pom.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/pom.xml 2010-05-04 15:24:41 UTC (rev 2975)
@@ -13,10 +13,10 @@
</parent>
-->
<groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-hellouser</artifactId>
+ <artifactId>gatein-jsp-iPhonemenu</artifactId>
<version>3.0.0-unine-SNAPSHOT</version>
<packaging>war</packaging>
- <name>GateIn Portal Examples - JSP Hello User Portlet</name>
+ <name>GateIn Portal - JSP iPhone Menu Portlet</name>
<build>
<plugins>
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 15:24:41 UTC (rev 2975)
@@ -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)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
- }
-
- 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);
- }
-
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
-
-}
Copied: sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java (from rev 2974, sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/java/org/jboss/portal/portlet/samples/JSPIPhoneMenuPortlet.java 2010-05-04 15:24:41 UTC (rev 2975)
@@ -0,0 +1,78 @@
+/******************************************************************************
+ * 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 JSPIPhoneMenuPortlet extends GenericPortlet
+{
+
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ String sYourName = (String) request.getParameter("yourname");
+ if (sYourName != null)
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
+ prd.include(request, response);
+ }
+ else
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+ prd.include(request, response);
+ }
+ }
+
+ 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);
+ }
+
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
+ UnavailableException
+ {
+ String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("yourname", sYourname);
+ }
+
+
+}
Modified: sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 15:24:41 UTC (rev 2975)
@@ -5,8 +5,8 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
+ <portlet-name>JSPIPhoneMenuPortlet</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPIPhoneMenuPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
@@ -14,7 +14,7 @@
<portlet-mode>help</portlet-mode>
</supports>
<portlet-info>
- <title>JSP Hello User Portlet</title>
+ <title>JSP iPhone Menu Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
\ No newline at end of file
Modified: sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/jsp/welcome.jsp 2010-05-04 14:58:39 UTC (rev 2974)
+++ sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/src/main/webapp/jsp/welcome.jsp 2010-05-04 15:24:41 UTC (rev 2975)
@@ -1,37 +1,5 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-<div class="portlet-section-header">Welcome !</div>
-
-<br/>
-
<div class="portlet-font">
-
- Welcome on the JSP Hello User portlet,
-my name is JBoss Portal. What's yours ?</div>
-
-<br/>
-
-<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
-<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
-Please check the source code to see the difference with Method 1.
-<portlet:renderURL var="myRenderURL">
- <portlet:param name="yourname" value='John Doe'/>
-</portlet:renderURL>
-<br/>
-<a href="<%= myRenderURL %>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 3: We use a form:<br/>
-
-<portlet:actionURL var="myActionURL"/>
-<form action="<%= myActionURL %>" method="POST">
- <span class="portlet-form-field-label">Name:</span>
- <input class="portlet-form-input-field" type="text" name="yourname"/>
- <input class="portlet-form-button" type="Submit"/>
-</form>
-</div>
\ No newline at end of file
+Menu portlet for iPhone.
+</div>
14 years, 8 months
gatein SVN: r2974 - sandbox/mobile_delivery/trunk/examples/portlets.
by do-not-reply@jboss.org
Author: david.borruat
Date: 2010-05-04 10:58:39 -0400 (Tue, 04 May 2010)
New Revision: 2974
Added:
sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld/
sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu/
Log:
new portlets for iPhone
Copied: sandbox/mobile_delivery/trunk/examples/portlets/iPhonehelloworld (from rev 2969, sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser)
Copied: sandbox/mobile_delivery/trunk/examples/portlets/iPhonemenu (from rev 2969, sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser)
14 years, 8 months
gatein SVN: r2973 - portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: mvanco(a)redhat.com
Date: 2010-05-04 08:15:31 -0400 (Tue, 04 May 2010)
New Revision: 2973
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html
Log:
EPP5 UI Tests: improved tests 07_004, 09_009, SNF_PRL_20
Modified: portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html
===================================================================
--- portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html 2010-05-04 10:55:07 UTC (rev 2972)
+++ portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_07_004_CheckDisplayLanguageOfPortalInPrivateModeWithDemoAccount.html 2010-05-04 12:15:31 UTC (rev 2973)
@@ -22,6 +22,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign in</td>
<td></td>
@@ -107,11 +112,6 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Sign in</td>
<td></td>
@@ -122,6 +122,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -167,8 +172,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -177,6 +182,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -197,6 +207,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Changer la langue</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Changer la langue</td>
<td></td>
@@ -212,6 +227,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Appliquer</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Appliquer</td>
<td></td>
@@ -227,6 +247,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign out</td>
<td></td>
@@ -242,8 +267,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -252,6 +277,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>john</td>
@@ -292,6 +322,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Apply</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Apply</td>
<td></td>
@@ -327,11 +362,6 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Sign in</td>
<td></td>
@@ -377,6 +407,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Abmelden</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Abmelden</td>
<td></td>
@@ -387,8 +422,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -397,6 +432,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>john</td>
@@ -417,6 +457,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sprache wechseln</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sprache wechseln</td>
<td></td>
@@ -432,6 +477,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Anwenden</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Anwenden</td>
<td></td>
@@ -462,8 +512,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -472,6 +522,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>demo</td>
@@ -512,6 +567,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Apply</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Apply</td>
<td></td>
@@ -522,16 +582,6 @@
<td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>Home</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Home</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Uscita</td>
<td></td>
@@ -547,11 +597,6 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Sign in</td>
<td></td>
@@ -582,6 +627,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Uscita</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Uscita</td>
<td></td>
@@ -607,8 +657,8 @@
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
@@ -662,12 +712,22 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Applica</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Applica</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
+ <td>SiteMap</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
<td>Home</td>
<td></td>
</tr>
@@ -677,6 +737,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign out</td>
<td></td>
Modified: portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html
===================================================================
--- portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html 2010-05-04 10:55:07 UTC (rev 2972)
+++ portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_09_009_CreateNewPortalWithPortalNameTheSameWithExistingButDifferentByLowerAndUpperCase.html 2010-05-04 12:15:31 UTC (rev 2973)
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
@@ -22,6 +22,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign in</td>
<td></td>
@@ -83,7 +88,7 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td>name</td>
<td></td>
</tr>
<tr>
@@ -107,11 +112,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>sessionAlive</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>sessionAlive</td>
<td>label=On Demand</td>
@@ -122,6 +137,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
@@ -202,13 +222,23 @@
<td>exact:*</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Portal Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//td[@class='Content']/div[@class='Label' and text()='test_por_09_009']</td>
<td></td>
</tr>
<tr>
@@ -252,11 +282,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>sessionAlive</td>
+ <td></td>
+</tr>
+<tr>
<td>select</td>
<td>sessionAlive</td>
<td>label=On Demand</td>
@@ -267,6 +307,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
<td></td>
@@ -317,8 +362,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Administrators</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>link=Administrators</td>
<td></td>
</tr>
<tr>
@@ -337,13 +387,23 @@
<td>exact:*</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Portal Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//td[@class='Content']/div[@class='Label' and text()='Test_POR_09_009']</td>
<td></td>
</tr>
<tr>
@@ -433,12 +493,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href, 'op=DeletePortal&objectId=test_por_09_009')]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href, 'op=DeletePortal&objectId=test_por_09_009')]</td>
<td></td>
</tr>
<tr>
@@ -468,12 +528,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href, 'op=DeletePortal&objectId=Test_POR_09_009')]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href, 'op=DeletePortal&objectId=Test_POR_09_009')]</td>
<td></td>
</tr>
<tr>
Modified: portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html
===================================================================
--- portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html 2010-05-04 10:55:07 UTC (rev 2972)
+++ portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_20_DeletePortal.html 2010-05-04 12:15:31 UTC (rev 2973)
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
@@ -22,6 +22,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign in</td>
<td></td>
@@ -47,6 +52,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Site</td>
<td></td>
@@ -68,16 +78,6 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[(a)onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')"]</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[(a)onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')"]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
<td>name</td>
<td></td>
</tr>
@@ -147,8 +147,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Administrators</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>link=Administrators</td>
<td></td>
</tr>
<tr>
@@ -167,6 +172,11 @@
<td>exact:*</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Save</td>
<td></td>
@@ -182,28 +192,58 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>5000</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Delete portal</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>link=Home</td>
<td></td>
</tr>
<tr>
+ <td>clickAndWait</td>
+ <td>link=Home</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//a[@class='DeleteIcon' and contains(@href, 'op=DeletePortal&objectId=test_portal_name_20')]</td>
+ <td></td>
+</tr>
+<tr>
<td>pause</td>
- <td>5000</td>
+ <td>8000</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]</td>
+ <td>//a[@class='DeleteIcon' and contains(@href, 'op=DeletePortal&objectId=test_portal_name_20')]</td>
<td></td>
</tr>
<tr>
14 years, 8 months
gatein SVN: r2972 - in sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main: webapp/jsp and 1 other directory.
by do-not-reply@jboss.org
Author: david.borruat
Date: 2010-05-04 06:55:07 -0400 (Tue, 04 May 2010)
New Revision: 2972
Modified:
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp
Log:
portlets examples ok
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java 2010-05-04 10:07:45 UTC (rev 2971)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java 2010-05-04 10:55:07 UTC (rev 2972)
@@ -23,12 +23,14 @@
package org.jboss.portal.portlet.samples;
import java.io.IOException;
+import java.io.PrintWriter;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletURL;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.UnavailableException;
@@ -38,17 +40,30 @@
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
{
- String sYourName = (String) request.getParameter("yourname");
- if (sYourName != null)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
+/*
+ String sIsIPhone = (String) request.getParameter("iPhone");
+ if (sIsIPhone.equals("true")) {
+ PortletURL newUrl = response.createRenderURL();
+ //editUrl.setPortletMode(PortletMode.EDIT);
+ newUrl.setParameter("portal:componentId", "UISkinSelector");
+ newUrl.setParameter("portal:action", "Save");
+ newUrl.setParameter("skin", "iPhoneSkin");
+
+ response.setContentType("text/html");
+ PrintWriter writer = response.getWriter();
+ writer.write("<a href=\""+newUrl.toString()+"\"> Cliquer ici </a>");
+ writer.close();
+
+
+ }
+ else{
+*/
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+ prd.include(request, response);
+
+ // }
+
+
}
protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException,
@@ -70,8 +85,9 @@
public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
UnavailableException
{
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
+ //String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("iPhone", "true");
+
}
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp 2010-05-04 10:07:45 UTC (rev 2971)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp 2010-05-04 10:55:07 UTC (rev 2972)
@@ -12,4 +12,9 @@
</SCRIPT>
<div class="portlet-section-header">Hidden portlet</div>
-<div onclick="javascript:changeSkin()">Click to change skin to iPhone</div>
\ No newline at end of file
+<div onclick="javascript:changeSkin()">Click to change skin to iPhone</div>
+<br/>
+<portlet:actionURL var="myActionURL"/>
+<form action="<%= myActionURL %>" method="POST">
+ <input class="portlet-form-button" type="Submit" value="Change Skin"/>
+</form>
\ No newline at end of file
14 years, 8 months
gatein SVN: r2971 - portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: mvanco(a)redhat.com
Date: 2010-05-04 06:07:45 -0400 (Tue, 04 May 2010)
New Revision: 2971
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_26_MoveUpAndDownANode.html
Log:
EPP5 UI Tests: improved test SNF_PRL_26
Modified: portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_26_MoveUpAndDownANode.html
===================================================================
--- portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_26_MoveUpAndDownANode.html 2010-05-04 09:57:56 UTC (rev 2970)
+++ portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_26_MoveUpAndDownANode.html 2010-05-04 10:07:45 UTC (rev 2971)
@@ -22,12 +22,17 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
<tr>
- <td>verifyElementPresent</td>
+ <td>waitForElementPresent</td>
<td>username</td>
<td></td>
</tr>
@@ -87,6 +92,11 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>2000</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>name</td>
<td>test_grp_node_26</td>
@@ -152,11 +162,6 @@
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=test_grp_label_26</td>
- <td></td>
-</tr>
-<tr>
<td>echo</td>
<td>--Edit node's position</td>
<td></td>
@@ -302,6 +307,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign out</td>
<td></td>
14 years, 8 months
gatein SVN: r2970 - portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: mvanco(a)redhat.com
Date: 2010-05-04 05:57:56 -0400 (Tue, 04 May 2010)
New Revision: 2970
Modified:
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html
portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
Log:
EPP5 UI Tests: improved tests 22_019, SNF_PRL_13
Modified: portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html
===================================================================
--- portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html 2010-05-04 09:53:33 UTC (rev 2969)
+++ portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_POR_22_019_ChangeEditRightOnPortalPageWhileEditingPortalPageProperties.html 2010-05-04 09:57:56 UTC (rev 2970)
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
@@ -22,6 +22,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign in</td>
<td></td>
@@ -63,7 +68,7 @@
</tr>
<tr>
<td>echo</td>
- <td>--Choose Page Setting</td>
+ <td>--Add new page--</td>
<td></td>
</tr>
<tr>
@@ -77,6 +82,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td>Page Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>ownerType</td>
<td></td>
@@ -92,6 +102,16 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>3000</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>name</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>name</td>
<td>Test_POR_22_019</td>
@@ -103,7 +123,7 @@
</tr>
<tr>
<td>echo</td>
- <td>--Choose Page Layout--</td>
+ <td>--Choose Page Setting--</td>
<td></td>
</tr>
<tr>
@@ -118,7 +138,7 @@
</tr>
<tr>
<td>echo</td>
- <td>--Choose Page Setting--</td>
+ <td>--Choose Access Permission Setting--</td>
<td></td>
</tr>
<tr>
@@ -132,11 +152,6 @@
<td></td>
</tr>
<tr>
- <td>echo</td>
- <td>--Choose Access Permission Setting--</td>
- <td></td>
-</tr>
-<tr>
<td>waitForElementPresent</td>
<td>link=Access Permission Setting</td>
<td></td>
@@ -177,6 +192,16 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Page Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>portal::classic::Test_POR_22_019</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Search new page created--</td>
<td></td>
@@ -207,6 +232,16 @@
<td></td>
</tr>
<tr>
+ <td>pause</td>
+ <td>3000</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>portal::classic::Test_POR_22_019</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>-- Edit this page--</td>
<td></td>
@@ -327,6 +362,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>xpath=//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
@@ -352,6 +392,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextNotPresent</td>
+ <td>Test_POR_22_019</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>xpath=//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a</td>
<td></td>
Modified: portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html
===================================================================
--- portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html 2010-05-04 09:53:33 UTC (rev 2969)
+++ portal/branches/EPP_5_0_Branch/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13_AddRemoteAndCreateNewGadget.html 2010-05-04 09:57:56 UTC (rev 2970)
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
@@ -22,8 +22,8 @@
<td></td>
</tr>
<tr>
- <td>setSpeed</td>
- <td>150</td>
+ <td>waitForElementPresent</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
14 years, 8 months
gatein SVN: r2969 - in sandbox/mobile_delivery/trunk/examples/portlets: jspautochangeskin and 9 other directories.
by do-not-reply@jboss.org
Author: david.borruat
Date: 2010-05-04 05:53:33 -0400 (Tue, 04 May 2010)
New Revision: 2969
Added:
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/pom.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/jsp/welcome.jsp
Removed:
sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/pom.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/jsp/welcome.jsp
Modified:
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/pom.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp
sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
Log:
rename davidportlet in jspcssinjection
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/pom.xml 2010-05-04 09:30:47 UTC (rev 2968)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/pom.xml 2010-05-04 09:53:33 UTC (rev 2969)
@@ -13,10 +13,10 @@
</parent>
-->
<groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-cssinjection</artifactId>
+ <artifactId>gatein-jsp-autochangeskin</artifactId>
<version>3.0.0-unine-SNAPSHOT</version>
<packaging>war</packaging>
- <name>GateIn Portlet Examples - CSS injection portlet</name>
+ <name>GateIn Portlet Examples - Auto Change Skin portlet</name>
<build>
<plugins>
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java (from rev 2968, sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPAutoChangeSkin.java 2010-05-04 09:53:33 UTC (rev 2969)
@@ -0,0 +1,78 @@
+/******************************************************************************
+ * 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 JSPAutoChangeSkin extends GenericPortlet
+{
+
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ String sYourName = (String) request.getParameter("yourname");
+ if (sYourName != null)
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
+ prd.include(request, response);
+ }
+ else
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+ prd.include(request, response);
+ }
+ }
+
+ 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);
+ }
+
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
+ UnavailableException
+ {
+ String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("yourname", sYourname);
+ }
+
+
+}
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java 2010-05-04 09:30:47 UTC (rev 2968)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java 2010-05-04 09:53:33 UTC (rev 2969)
@@ -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 JSPCSSInjection extends GenericPortlet
-{
-
- public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
- {
- String sYourName = (String) request.getParameter("yourname");
- if (sYourName != null)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
- }
-
- 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);
- }
-
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
-
-}
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 09:30:47 UTC (rev 2968)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 09:53:33 UTC (rev 2969)
@@ -5,8 +5,8 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
- <portlet-name>JSPCSSInjection</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPCSSInjection</portlet-class>
+ <portlet-name>JSPAutoChangeSkin</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPAutoChangeSkin</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
@@ -14,7 +14,7 @@
<portlet-mode>help</portlet-mode>
</supports>
<portlet-info>
- <title>JSP CSS Injection Portlet</title>
+ <title>JSP Auto Change Skin Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
\ No newline at end of file
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:30:47 UTC (rev 2968)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:53:33 UTC (rev 2969)
@@ -1,37 +1,15 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-<div class="portlet-section-header">Welcome !</div>
+<SCRIPT type="text/javascript">
+<!--
-<br/>
+function changeSkin()
+{
+ location.href="http://localhost:8080/portal/private/iPhone_with_skin/home?portal:compone...";
+}
-<div class="portlet-font">
+//-->
+</SCRIPT>
- Welcome on the JSP Hello User portlet,
-my name is JBoss Portal. What's yours ?</div>
-
-<br/>
-
-<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
-<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
-Please check the source code to see the difference with Method 1.
-<portlet:renderURL var="myRenderURL">
- <portlet:param name="yourname" value='John Doe'/>
-</portlet:renderURL>
-<br/>
-<a href="<%= myRenderURL %>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 3: We use a form:<br/>
-
-<portlet:actionURL var="myActionURL"/>
-<form action="<%= myActionURL %>" method="POST">
- <span class="portlet-form-field-label">Name:</span>
- <input class="portlet-form-input-field" type="text" name="yourname"/>
- <input class="portlet-form-button" type="Submit"/>
-</form>
-</div>
\ No newline at end of file
+<div class="portlet-section-header">Hidden portlet</div>
+<div onclick="javascript:changeSkin()">Click to change skin to iPhone</div>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection (from rev 2937, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet)
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/pom.xml 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/pom.xml 2010-05-04 09:53:33 UTC (rev 2969)
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <!--
- the parent isn't required, you can drop it if you add a groupId
- and version
- -->
- <!-- <parent>
- <groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>parent</artifactId>
- <version>3.0.0-unine-SNAPSHOT</version>
- </parent>
--->
- <groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-hellouser</artifactId>
- <version>3.0.0-unine-SNAPSHOT</version>
- <packaging>war</packaging>
- <name>GateIn Portal Examples - JSP Hello User Portlet</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>javax.portlet</groupId>
- <artifactId>portlet-api</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/pom.xml (from rev 2968, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/pom.xml)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/pom.xml (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/pom.xml 2010-05-04 09:53:33 UTC (rev 2969)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <!--
+ the parent isn't required, you can drop it if you add a groupId
+ and version
+ -->
+ <!-- <parent>
+ <groupId>org.gatein.portal.examples.portlets</groupId>
+ <artifactId>parent</artifactId>
+ <version>3.0.0-unine-SNAPSHOT</version>
+ </parent>
+-->
+ <groupId>org.gatein.portal.examples.portlets</groupId>
+ <artifactId>gatein-jsp-cssinjection</artifactId>
+ <version>3.0.0-unine-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <name>GateIn Portlet Examples - CSS injection portlet</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.portlet</groupId>
+ <artifactId>portlet-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java (from rev 2968, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java 2010-05-04 09:53:33 UTC (rev 2969)
@@ -0,0 +1,69 @@
+/******************************************************************************
+ * 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 JSPCSSInjection extends GenericPortlet
+{
+
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+ prd.include(request, response);
+ }
+
+ 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);
+ }
+
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
+ UnavailableException
+ {
+ String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("yourname", sYourname);
+ }
+
+
+}
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:53:33 UTC (rev 2969)
@@ -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)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
- }
-
- 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);
- }
-
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
-
-}
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/WEB-INF/portlet.xml 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 09:53:33 UTC (rev 2969)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
-version="2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
- http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
- <portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
- <supports>
- <mime-type>text/html</mime-type>
- <portlet-mode>view</portlet-mode>
- <portlet-mode>edit</portlet-mode>
- <portlet-mode>help</portlet-mode>
- </supports>
- <portlet-info>
- <title>JSP Hello User Portlet</title>
- </portlet-info>
- </portlet>
-</portlet-app>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/WEB-INF/portlet.xml (from rev 2968, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/WEB-INF/portlet.xml)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/WEB-INF/portlet.xml (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 09:53:33 UTC (rev 2969)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+version="2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
+ http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
+ <portlet>
+ <portlet-name>JSPCSSInjection</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPCSSInjection</portlet-class>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>view</portlet-mode>
+ <portlet-mode>edit</portlet-mode>
+ <portlet-mode>help</portlet-mode>
+ </supports>
+ <portlet-info>
+ <title>JSP CSS Injection Portlet</title>
+ </portlet-info>
+ </portlet>
+</portlet-app>
\ No newline at end of file
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/jsp/welcome.jsp 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:53:33 UTC (rev 2969)
@@ -1,45 +0,0 @@
-<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-
- <style type="text/css">
- h1 { color: navy; }
- h2 { color: blue; }
- .portlet-font { font-style: italic }
- .Default { width: 300px }
- body { background: #dedf00; font-size: 15px}
- </style>
-
-<div class="portlet-section-header"><h1>Welcome !</h1></div>
-
-<br/>
-
-<div class="portlet-font">
-
- Welcome on the JSP Hello User portlet,
-my name is JBoss Portal. What's yours ?</div>
-
-<br/>
-
-<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
-<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
-Please check the source code to see the difference with Method 1.
-<portlet:renderURL var="myRenderURL">
- <portlet:param name="yourname" value='John Doe'/>
-</portlet:renderURL>
-<br/>
-<a href="<%= myRenderURL %>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 3: We use a form:<br/>
-
-<portlet:actionURL var="myActionURL"/>
-<form action="<%= myActionURL %>" method="POST">
- <span class="portlet-form-field-label">Name:</span>
- <input class="portlet-form-input-field" type="text" name="yourname"/>
- <input class="portlet-form-button" type="Submit"/>
-</form>
-</div>
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/jsp/welcome.jsp (from rev 2945, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/jsp/welcome.jsp)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/jsp/welcome.jsp (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspcssinjection/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:53:33 UTC (rev 2969)
@@ -0,0 +1,48 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+ <style type="text/css">
+ .Default { background:navy }
+ /* .UIWorkingWorkspace { width: 500px } */
+ </style>
+
+<SCRIPT type="text/javascript">
+<!--
+function changeContent()
+{
+ document.getElementById('SITEBODY-VIEW-BLOCK').innerHTML="Bad element by ID but it works !";
+}
+
+function writeHTML()
+{
+ //document.open();
+ document.write("User-agent header: " + navigator.userAgent);
+ document.close();
+}
+
+function isIPhone()
+{
+ var userAgent = navigator.userAgent;
+ if (userAgent.indexOf("iPhone",0) > -1){
+ return true;
+ }
+ return false;
+}
+
+
+//-->
+</SCRIPT>
+
+
+ <div>
+ <script type="text/javascript">
+ var userAgent = navigator.userAgent;
+ if (userAgent.indexOf("iPhone",0) > -1){
+ document.write("<h1>User Agent is iPhone</h1>");
+ document.write("<style type=\"text/css\"> .UIWorkingWorkspace { width: 500px } </style> ");
+ }
+ </script>
+ </div>
+
+<div class="portlet-section-header">Hidden portlet</div>
+<div onclick="javascript:changeContent()">Click to change content by ID </div>
+<div onclick="javascript:writeHTML()">Click to insert HTML in the code </div>
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:30:47 UTC (rev 2968)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:53:33 UTC (rev 2969)
@@ -35,14 +35,20 @@
public class JSPHelloUserPortlet extends GenericPortlet
{
-
+
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
{
-
+ String sYourName = (String) request.getParameter("yourname");
+ if (sYourName != null)
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
+ prd.include(request, response);
+ }
+ else
+ {
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
prd.include(request, response);
-
-
+ }
}
protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException,
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:30:47 UTC (rev 2968)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:53:33 UTC (rev 2969)
@@ -1,56 +1,37 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
- <style type="text/css">
- .Default { background:navy }
- /* .UIWorkingWorkspace { width: 500px } */
- </style>
+<div class="portlet-section-header">Welcome !</div>
-<SCRIPT type="text/javascript">
-<!--
-function changeContent()
-{
- document.getElementById('SITEBODY-VIEW-BLOCK').innerHTML="Bad element by ID but it works !";
-}
+<br/>
-function writeHTML()
-{
- //document.open();
- document.write("User-agent header: " + navigator.userAgent);
- document.close();
-}
+<div class="portlet-font">
-function isIPhone()
-{
- var userAgent = navigator.userAgent;
- if (userAgent.indexOf("iPhone",0) > -1){
- return true;
- }
- return false;
-}
+ Welcome on the JSP Hello User portlet,
+my name is JBoss Portal. What's yours ?</div>
-function changeSkin()
-{
+<br/>
- location.href="http://localhost:8080/portal/private/iPhone_with_skin/home?portal:compone...";
+<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
+<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-}
+<br/>
-//-->
-</SCRIPT>
+<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
+Please check the source code to see the difference with Method 1.
+<portlet:renderURL var="myRenderURL">
+ <portlet:param name="yourname" value='John Doe'/>
+</portlet:renderURL>
+<br/>
+<a href="<%= myRenderURL %>">John Doe</a></div>
-<!--
- <div>
- <script type="text/javascript">
- var userAgent = navigator.userAgent;
- if (userAgent.indexOf("iPhone",0) > -1){
- document.write("<h1>User Agent is iPhone</h1>");
- document.write("<style type=\"text/css\"> .UIWorkingWorkspace { width: 500px } </style> ");
- }
- </script>
- </div>
--->
+<br/>
-<div class="portlet-section-header">Hidden portlet</div>
-<div onclick="javascript:changeContent()">Click to change content by ID </div>
-<div onclick="javascript:writeHTML()">Click to insert HTML in the code </div>
-<div onclick="javascript:changeSkin()">Click to change skin to iPhone</div>
\ No newline at end of file
+<div class="portlet-font">Method 3: We use a form:<br/>
+
+<portlet:actionURL var="myActionURL"/>
+<form action="<%= myActionURL %>" method="POST">
+ <span class="portlet-form-field-label">Name:</span>
+ <input class="portlet-form-input-field" type="text" name="yourname"/>
+ <input class="portlet-form-button" type="Submit"/>
+</form>
+</div>
\ No newline at end of file
14 years, 8 months
gatein SVN: r2968 - in sandbox/mobile_delivery/trunk/examples/portlets: davidportlet and 8 other directories.
by do-not-reply@jboss.org
Author: david.borruat
Date: 2010-05-04 05:30:47 -0400 (Tue, 04 May 2010)
New Revision: 2968
Added:
sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp
Removed:
sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp
Modified:
sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/pom.xml
sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/pom.xml
sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/WEB-INF/portlet.xml
sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
Log:
new portlet auto change skin
Modified: sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/pom.xml 2010-05-04 09:20:08 UTC (rev 2967)
+++ sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/pom.xml 2010-05-04 09:30:47 UTC (rev 2968)
@@ -13,10 +13,10 @@
</parent>
-->
<groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-hellouser</artifactId>
+ <artifactId>gatein-jsp-cssinjection</artifactId>
<version>3.0.0-unine-SNAPSHOT</version>
<packaging>war</packaging>
- <name>GateIn Portal Examples - JSP Hello User Portlet</name>
+ <name>GateIn Portlet Examples - CSS injection portlet</name>
<build>
<plugins>
Copied: sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java (from rev 2937, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java 2010-05-04 09:30:47 UTC (rev 2968)
@@ -0,0 +1,78 @@
+/******************************************************************************
+ * 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 JSPCSSInjection extends GenericPortlet
+{
+
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ String sYourName = (String) request.getParameter("yourname");
+ if (sYourName != null)
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
+ prd.include(request, response);
+ }
+ else
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+ prd.include(request, response);
+ }
+ }
+
+ 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);
+ }
+
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
+ UnavailableException
+ {
+ String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("yourname", sYourname);
+ }
+
+
+}
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:20:08 UTC (rev 2967)
+++ sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:30:47 UTC (rev 2968)
@@ -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)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
- }
-
- 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);
- }
-
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
-
-}
Modified: sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 09:20:08 UTC (rev 2967)
+++ sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 09:30:47 UTC (rev 2968)
@@ -5,8 +5,8 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
+ <portlet-name>JSPCSSInjection</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPCSSInjection</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
@@ -14,7 +14,7 @@
<portlet-mode>help</portlet-mode>
</supports>
<portlet-info>
- <title>JSP Hello User Portlet</title>
+ <title>JSP CSS Injection Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
\ No newline at end of file
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin (from rev 2937, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet)
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/pom.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/pom.xml 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/pom.xml 2010-05-04 09:30:47 UTC (rev 2968)
@@ -13,10 +13,10 @@
</parent>
-->
<groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>gatein-jsp-hellouser</artifactId>
+ <artifactId>gatein-jsp-cssinjection</artifactId>
<version>3.0.0-unine-SNAPSHOT</version>
<packaging>war</packaging>
- <name>GateIn Portal Examples - JSP Hello User Portlet</name>
+ <name>GateIn Portlet Examples - CSS injection portlet</name>
<build>
<plugins>
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java (from rev 2937, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPCSSInjection.java 2010-05-04 09:30:47 UTC (rev 2968)
@@ -0,0 +1,78 @@
+/******************************************************************************
+ * 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 JSPCSSInjection extends GenericPortlet
+{
+
+ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
+ {
+ String sYourName = (String) request.getParameter("yourname");
+ if (sYourName != null)
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
+ prd.include(request, response);
+ }
+ else
+ {
+ PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
+ prd.include(request, response);
+ }
+ }
+
+ 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);
+ }
+
+ public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
+ UnavailableException
+ {
+ String sYourname = (String) aRequest.getParameter("yourname");
+ aResponse.setRenderParameter("yourname", sYourname);
+ }
+
+
+}
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:30:47 UTC (rev 2968)
@@ -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)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
- prd.include(request, response);
- }
- }
-
- 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);
- }
-
- public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException,
- UnavailableException
- {
- String sYourname = (String) aRequest.getParameter("yourname");
- aResponse.setRenderParameter("yourname", sYourname);
- }
-
-
-}
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/WEB-INF/portlet.xml 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/WEB-INF/portlet.xml 2010-05-04 09:30:47 UTC (rev 2968)
@@ -5,8 +5,8 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
- <portlet-name>JSPHelloUserPortlet</portlet-name>
- <portlet-class>org.jboss.portal.portlet.samples.JSPHelloUserPortlet</portlet-class>
+ <portlet-name>JSPCSSInjection</portlet-name>
+ <portlet-class>org.jboss.portal.portlet.samples.JSPCSSInjection</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
@@ -14,7 +14,7 @@
<portlet-mode>help</portlet-mode>
</supports>
<portlet-info>
- <title>JSP Hello User Portlet</title>
+ <title>JSP CSS Injection Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
\ No newline at end of file
Deleted: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/jsp/welcome.jsp 2010-05-03 11:45:49 UTC (rev 2937)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:30:47 UTC (rev 2968)
@@ -1,45 +0,0 @@
-<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-
- <style type="text/css">
- h1 { color: navy; }
- h2 { color: blue; }
- .portlet-font { font-style: italic }
- .Default { width: 300px }
- body { background: #dedf00; font-size: 15px}
- </style>
-
-<div class="portlet-section-header"><h1>Welcome !</h1></div>
-
-<br/>
-
-<div class="portlet-font">
-
- Welcome on the JSP Hello User portlet,
-my name is JBoss Portal. What's yours ?</div>
-
-<br/>
-
-<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
-<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
-Please check the source code to see the difference with Method 1.
-<portlet:renderURL var="myRenderURL">
- <portlet:param name="yourname" value='John Doe'/>
-</portlet:renderURL>
-<br/>
-<a href="<%= myRenderURL %>">John Doe</a></div>
-
-<br/>
-
-<div class="portlet-font">Method 3: We use a form:<br/>
-
-<portlet:actionURL var="myActionURL"/>
-<form action="<%= myActionURL %>" method="POST">
- <span class="portlet-form-field-label">Name:</span>
- <input class="portlet-form-input-field" type="text" name="yourname"/>
- <input class="portlet-form-button" type="Submit"/>
-</form>
-</div>
Copied: sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp (from rev 2945, sandbox/mobile_delivery/trunk/examples/portlets/davidportlet/src/main/webapp/jsp/welcome.jsp)
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp (rev 0)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jspautochangeskin/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:30:47 UTC (rev 2968)
@@ -0,0 +1,37 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
+
+<div class="portlet-section-header">Welcome !</div>
+
+<br/>
+
+<div class="portlet-font">
+
+ Welcome on the JSP Hello User portlet,
+my name is JBoss Portal. What's yours ?</div>
+
+<br/>
+
+<div class="portlet-font">Method 1: We simply pass the parameter to the render phase:<br/>
+<a href="<portlet:renderURL><portlet:param name="yourname" value="John Doe"/></portlet:renderURL>">John Doe</a></div>
+
+<br/>
+
+<div class="portlet-font">Method 2: We pass the parameter to the render phase, using valid markup:
+Please check the source code to see the difference with Method 1.
+<portlet:renderURL var="myRenderURL">
+ <portlet:param name="yourname" value='John Doe'/>
+</portlet:renderURL>
+<br/>
+<a href="<%= myRenderURL %>">John Doe</a></div>
+
+<br/>
+
+<div class="portlet-font">Method 3: We use a form:<br/>
+
+<portlet:actionURL var="myActionURL"/>
+<form action="<%= myActionURL %>" method="POST">
+ <span class="portlet-form-field-label">Name:</span>
+ <input class="portlet-form-input-field" type="text" name="yourname"/>
+ <input class="portlet-form-button" type="Submit"/>
+</form>
+</div>
\ No newline at end of file
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:20:08 UTC (rev 2967)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/java/org/jboss/portal/portlet/samples/JSPHelloUserPortlet.java 2010-05-04 09:30:47 UTC (rev 2968)
@@ -39,17 +39,10 @@
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
{
- String sYourName = (String) request.getParameter("yourname");
- if (sYourName != null)
- {
- PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/hello.jsp");
- prd.include(request, response);
- }
- else
- {
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/welcome.jsp");
prd.include(request, response);
- }
+
+
}
protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException,
Modified: sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp
===================================================================
--- sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:20:08 UTC (rev 2967)
+++ sandbox/mobile_delivery/trunk/examples/portlets/jsphellouser/src/main/webapp/jsp/welcome.jsp 2010-05-04 09:30:47 UTC (rev 2968)
@@ -1,32 +1,56 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
-<style type="text/css">
- .Default { background:navy }
- /* .UIWorkingWorkspace { width: 500px } */
+ <style type="text/css">
+ .Default { background:navy }
+ /* .UIWorkingWorkspace { width: 500px } */
</style>
<SCRIPT type="text/javascript">
<!--
-function change()
+function changeContent()
{
- document.getElementById('SITEBODY-VIEW-BLOCK').innerHTML="la_valeur_que_tu_veux_�crire";
-
+ document.getElementById('SITEBODY-VIEW-BLOCK').innerHTML="Bad element by ID but it works !";
}
-function addHTML()
+function writeHTML()
{
- //
- //document.write("<style type='text/css'> .UIWorkingWorkspace { width: 500px } </style>");
- // document.write("hello you");
//document.open();
- document.write("User-agent header: " + navigator.userAgent);
- document.write("<style type=\"text/css\"> .UIWorkingWorkspace { width: 500px } </style>");
+ document.write("User-agent header: " + navigator.userAgent);
document.close();
+}
+function isIPhone()
+{
+ var userAgent = navigator.userAgent;
+ if (userAgent.indexOf("iPhone",0) > -1){
+ return true;
+ }
+ return false;
}
+function changeSkin()
+{
+
+ location.href="http://localhost:8080/portal/private/iPhone_with_skin/home?portal:compone...";
+
+}
+
//-->
</SCRIPT>
+
+<!--
+ <div>
+ <script type="text/javascript">
+ var userAgent = navigator.userAgent;
+ if (userAgent.indexOf("iPhone",0) > -1){
+ document.write("<h1>User Agent is iPhone</h1>");
+ document.write("<style type=\"text/css\"> .UIWorkingWorkspace { width: 500px } </style> ");
+ }
+ </script>
+ </div>
+-->
+
<div class="portlet-section-header">Hidden portlet</div>
-<div onclick="javascript:change()"> Change content by ID </div>
-<div onclick="javascript:addHTML()"> Insert HTML in the code </div>
+<div onclick="javascript:changeContent()">Click to change content by ID </div>
+<div onclick="javascript:writeHTML()">Click to insert HTML in the code </div>
+<div onclick="javascript:changeSkin()">Click to change skin to iPhone</div>
\ No newline at end of file
14 years, 8 months
gatein SVN: r2967 - portal/branches/EPP_5_0_0_Branch_Docs/Enterprise_Portal_Platform_Reference_Guide/en-US/modules/PortalDevelopment.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-05-04 05:20:08 -0400 (Tue, 04 May 2010)
New Revision: 2967
Modified:
portal/branches/EPP_5_0_0_Branch_Docs/Enterprise_Portal_Platform_Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml
Log:
JBEPP-276: Reference Guide
GTNPORTAL-953: wrong definition of UserACL.access.control.workspace
Modified: portal/branches/EPP_5_0_0_Branch_Docs/Enterprise_Portal_Platform_Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml
===================================================================
--- portal/branches/EPP_5_0_0_Branch_Docs/Enterprise_Portal_Platform_Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml 2010-05-04 09:13:42 UTC (rev 2966)
+++ portal/branches/EPP_5_0_0_Branch_Docs/Enterprise_Portal_Platform_Reference_Guide/en-US/modules/PortalDevelopment/DefaultPortalPermissionConfiguration.xml 2010-05-04 09:20:08 UTC (rev 2967)
@@ -11,7 +11,7 @@
The default permission configuration for the portal is defined through the <literal>org.exoplatform.portal.config.UserACL</literal> component configuration in the file <filename>02portal.war:/WEB-INF/conf/portal/portal-configuration.xml</filename>.
</para>
<para>
- It defines 5 permissions types:
+ It defines 8 permissions types:
</para>
<variablelist>
<varlistentry>
@@ -23,6 +23,22 @@
</listitem>
</varlistentry>
<varlistentry>
+ <term>portal.administrator.groups</term>
+ <listitem>
+ <para>
+ Any member of those groups are considered administrators. Default value is <literal>/platform/administrators</literal>.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>portal.administrator.mstype</term>
+ <listitem>
+ <para>
+ Any user with that membership type would be considered administrator or the associated group. Default value is <literal>manager</literal>.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term>portal.creator.groups</term>
<listitem>
<para>
@@ -47,13 +63,21 @@
</listitem>
</varlistentry>
<varlistentry>
- <term>access.control.workspace</term>
+ <term>mandatory.groups</term>
<listitem>
<para>
- Defines the users that have access to the control workspace. In the demontration (demo) version the control workspace is accessible only to <emphasis>root</emphasis> and <emphasis>john</emphasis>. They can expand/collapse the workspace at the left hand side. The format is <literal>membership:/group/subgroup</literal>. An asterisk (*) gives permission to all memberships.
+ Groups that can't be deleted.
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>mandatory.mstypes</term>
+ <listitem>
+ <para>
+ Membership types that can't be deleted.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
<programlisting role="XML"><component>
<key>org.exoplatform.portal.config.UserACL</key>
14 years, 8 months