[jboss-svn-commits] JBoss PortletSwap SVN: r80 - in portlets/2_4/src: . IFramePortlet IFramePortlet/lib IFramePortlet/src IFramePortlet/src/main IFramePortlet/src/main/org IFramePortlet/src/main/org/jboss IFramePortlet/src/main/org/jboss/portlet IFramePortlet/src/main/org/jboss/portlet/iframe IFramePortlet/src/resources IFramePortlet/src/resources/iframeportlet-war IFramePortlet/src/resources/iframeportlet-war/WEB-INF IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/portlet IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/portlet/iframe IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jul 24 13:26:16 EDT 2006


Author: roy.russo at jboss.com
Date: 2006-07-24 13:26:06 -0400 (Mon, 24 Jul 2006)
New Revision: 80

Added:
   portlets/2_4/src/IFramePortlet/
   portlets/2_4/src/IFramePortlet/LICENSES.txt
   portlets/2_4/src/IFramePortlet/README.txt
   portlets/2_4/src/IFramePortlet/build.xml
   portlets/2_4/src/IFramePortlet/iframeportlet.war
   portlets/2_4/src/IFramePortlet/lib/
   portlets/2_4/src/IFramePortlet/lib/explode.jar
   portlets/2_4/src/IFramePortlet/lib/portal-common-lib.jar
   portlets/2_4/src/IFramePortlet/lib/portlet-api-lib.jar
   portlets/2_4/src/IFramePortlet/src/
   portlets/2_4/src/IFramePortlet/src/bin/
   portlets/2_4/src/IFramePortlet/src/main/
   portlets/2_4/src/IFramePortlet/src/main/org/
   portlets/2_4/src/IFramePortlet/src/main/org/jboss/
   portlets/2_4/src/IFramePortlet/src/main/org/jboss/portlet/
   portlets/2_4/src/IFramePortlet/src/main/org/jboss/portlet/iframe/
   portlets/2_4/src/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java
   portlets/2_4/src/IFramePortlet/src/resources/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/portlet/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/portlet/iframe/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/portlet/iframe/IFramePortlet.class
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe-object.xml
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/edit.jsp
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/iframe.jsp
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-app.xml
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-web.xml
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet-instances.xml
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet.xml
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/web.xml
   portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/images/
Log:



Property changes on: portlets/2_4/src/IFramePortlet
___________________________________________________________________
Name: svn:ignore
   + output


Added: portlets/2_4/src/IFramePortlet/LICENSES.txt
===================================================================
--- portlets/2_4/src/IFramePortlet/LICENSES.txt	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/LICENSES.txt	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1 @@
+LGPL: explode.jar, portal-common.jar, portlet-api.jar

Added: portlets/2_4/src/IFramePortlet/README.txt
===================================================================
--- portlets/2_4/src/IFramePortlet/README.txt	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/README.txt	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,6 @@
+This portlet works with JBoss Portal 2.4+. It allows for a user-defined IFrame URL. This software is distributed under the LGPL, unless otherwise noted in the LICENSES.txt.
+
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy"
+- To deploy this portlet, simply copy the iframeportlet.war file to your /deploy directory where JBoss Portal resides.
+
+

Added: portlets/2_4/src/IFramePortlet/build.xml
===================================================================
--- portlets/2_4/src/IFramePortlet/build.xml	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/build.xml	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,86 @@
+<project name="JBoss IFrame Portlet"
+         default="deploy"
+         basedir=".">
+
+   <property name="app.name" value="iframe"/>
+
+   <property name="src.dir" value="${basedir}/src"/>
+
+   <property name="lib.dir" value="${basedir}/lib"/>
+
+   <property name="build.dir" value="${basedir}/output"/>
+
+   <property name="build.lib" value="${build.dir}/lib"/>
+
+   <property name="build.resources" value="${src.dir}/resources"/>
+
+   <property name="build.etc" value="${src.dir}/etc"/>
+
+   <property name="classes.dir" value="${build.dir}/classes"/>
+
+   <property name="dist.dir" value="${src.dir}/resources"/>
+
+   <property name="libs.api" value="${lib.dir}/portlet-api-lib.jar"/>
+
+   <property name="libs.ant"
+             value="${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar"/>
+
+   <property name="libs" value="${libs.api};${libs.ant}"/>
+
+   <available property="clover.available" classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+
+   <target name="clover-yes" depends="prepare" if="clover.available">
+      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+   </target>
+
+   <target name="clover-no" depends="prepare" unless="clover.available">
+      <property name="compiler" value="modern"/>
+   </target>
+
+   <target name="prepare">
+      <mkdir dir="${classes.dir}"/>
+      <mkdir dir="${build.lib}"/>
+      <mkdir dir="${build.lib}/exploded"/>
+      <mkdir dir="${build.resources}/iframeportlet-war/WEB-INF/classes"/>
+   </target>
+
+   <target name="clean">
+      <delete dir="${build.dir}"/>
+      <delete dir="${build.resources}/iframeportlet-war/WEB-INF/classes"/>
+   </target>
+
+   <target name="deploy" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/iframeportlet-war/WEB-INF/classes">
+      </copydir>
+
+      <!-- iframeportlet.war -->
+      <jar jarfile="iframeportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/iframeportlet-war"/>
+      </jar>
+   </target>
+
+   <target name="explode" depends="deploy">
+      <taskdef classname="org.jboss.nukes.common.ant.Explode"
+               name="explode"
+               classpath="${libs}"/>
+      <explode
+            file="iframeportlet.war"
+            todir="${build.lib}/exploded"
+            name="iframeportlet.war"/>
+   </target>
+   <target name="all" depends="deploy"/>
+</project>
+

Added: portlets/2_4/src/IFramePortlet/iframeportlet.war
===================================================================
(Binary files differ)


Property changes on: portlets/2_4/src/IFramePortlet/iframeportlet.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/2_4/src/IFramePortlet/lib/explode.jar
===================================================================
(Binary files differ)


Property changes on: portlets/2_4/src/IFramePortlet/lib/explode.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/2_4/src/IFramePortlet/lib/portal-common-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/2_4/src/IFramePortlet/lib/portal-common-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/2_4/src/IFramePortlet/lib/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/2_4/src/IFramePortlet/lib/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/2_4/src/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java
===================================================================
--- portlets/2_4/src/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,171 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., 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.portlet.iframe;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletSecurityException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import java.io.IOException;
+
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 04-Mar-2006
+ * Time: 10:45:10
+ */
+
+public class IFramePortlet extends GenericPortlet
+{
+   private static final String defaultURL = "http://www.jboss.com";
+   private static final String defaultHeight = "200px";
+   private static final String defaultWidth = "100%";
+   private static final String defaultNonIFrameMessage = "Your browser does not support iframes";
+
+   public void processAction(ActionRequest request, ActionResponse response) throws PortletException, PortletSecurityException, IOException
+   {
+      String op = request.getParameter("op");
+      StringBuffer message = new StringBuffer(1024);
+      if((op != null) && (op.trim().length() > 0))
+      {
+         if(op.equalsIgnoreCase("update"))
+         {
+            PortletPreferences prefs = request.getPreferences();
+            String url = request.getParameter("url");
+            String height = request.getParameter("height");
+            String width = request.getParameter("width");
+            String noIFrameMessage = request.getParameter("noiframemessage");
+            boolean px = false;
+            boolean save = true;
+            if((url != null) && (height != null) && (width != null) && (noIFrameMessage != null))
+            {
+               if(!url.startsWith("http://"))
+               {
+                  save = false;
+                  message.append("URLs must start with 'http://'<br/>");
+               }
+
+               try
+               {
+                  if(height.endsWith("px"))
+                  {
+                     height = height.substring(0, height.length() - 2);
+                  }
+                  Integer.parseInt(height);
+               }
+               catch(NumberFormatException nfe)
+               {
+                  //Bad height value
+                  save = false;
+                  message.append("Height must be an integer<br/>");
+               }
+               try
+               {
+                  if(width.endsWith("px"))
+                  {
+                     px = true;
+                     width = width.substring(0, width.length() - 2);
+                  }
+                  else if(width.endsWith("%"))
+                  {
+                     width = width.substring(0, width.length() - 1);
+                  }
+                  Integer.parseInt(width);
+               }
+               catch(NumberFormatException nfe)
+               {
+                  //Bad height value
+                  save = false;
+                  message.append("Width must be an integer<br/>");
+               }
+
+               if(save)
+               {
+                  prefs.setValue("iframeheight", height + "px");
+                  prefs.setValue("iframewidth", px ? width + "px" : width + "%");
+                  prefs.setValue("iframeurl", url);
+                  prefs.setValue("iframemessage", noIFrameMessage);
+                  prefs.store();
+                  response.setPortletMode(PortletMode.VIEW);
+                  return;
+               }
+            }
+         }
+         else if(op.equalsIgnoreCase("cancel"))
+         {
+            response.setPortletMode(PortletMode.VIEW);
+            return;
+         }
+         else
+         {
+            message.append("Operation not found");
+         }
+      }
+      else
+      {
+         message.append("Operation is null");
+      }
+
+      response.setRenderParameter("message", message.toString());
+      response.setPortletMode(PortletMode.EDIT);
+   }
+
+   public void doView(RenderRequest request, RenderResponse response)
+   {
+      try
+      {
+         setRenderAttributes(request);
+         response.setContentType("text/html");
+         PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/iframe/iframe.jsp");
+         prd.include(request, response);
+      }
+      catch(Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+
+   public void doEdit(RenderRequest request, RenderResponse response) throws IOException, PortletException
+   {
+      setRenderAttributes(request);
+      response.setContentType("text/html");
+      response.setTitle("Edit");
+      PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/iframe/edit.jsp");
+      prd.include(request, response);
+   }
+
+   private void setRenderAttributes(RenderRequest request)
+   {
+      PortletPreferences prefs = request.getPreferences();
+      request.setAttribute("iframeurl", prefs.getValue("iframeurl", IFramePortlet.defaultURL));
+      request.setAttribute("iframeheight", prefs.getValue("iframeheight", IFramePortlet.defaultHeight));
+      request.setAttribute("iframewidth", prefs.getValue("iframewidth", IFramePortlet.defaultWidth));
+      request.setAttribute("iframemessage", prefs.getValue("iframemessage", IFramePortlet.defaultNonIFrameMessage));
+   }
+}
+

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/portlet/iframe/IFramePortlet.class
===================================================================
(Binary files differ)


Property changes on: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/classes/org/jboss/portlet/iframe/IFramePortlet.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/edit.jsp
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/edit.jsp	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/edit.jsp	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,39 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<form method="post" action="<portlet:actionURL/>">
+	<table>
+        <tr class="portlet-msg-alert">
+            <td colspan="2"><%= request.getParameter("message") != null ?  request.getParameter("message") : ""%></td>
+        </tr>
+        <tr class="portlet-section-body">
+			<td>Non IFrame Browser Message</td>
+			<td><input type="text" name="noiframemessage" value="<%= request.getAttribute("iframemessage") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Source URL</td>
+			<td><input type="text" name="url" value="<%= request.getAttribute("iframeurl") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Height (px)</td>
+			<td><input type="text" name="height" value="<%= request.getAttribute("iframeheight") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Width (px or %)</td>
+			<td><input type="text" name="width" value="<%= request.getAttribute("iframewidth") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td align="right"><input type="submit" name="op" value="Update"/></td>
+            <td align="left"><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>
\ No newline at end of file

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/iframe.jsp
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/iframe.jsp	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe/iframe.jsp	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,26 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<table width="<%= request.getAttribute("iframewidth") %>">
+    <tr>
+        <td>
+            <a target="_new" href="<%= request.getAttribute("iframeurl") %>"><center>Open in new window</center></a>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <iframe src="<%= request.getAttribute("iframeurl") %>" width="<%= request.getAttribute("iframewidth") %>" height="<%= request.getAttribute("iframeheight") %>" border="0">
+	            Your browser does not support iframes
+            </iframe>
+        </td>
+    </tr>
+</table>
\ No newline at end of file

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe-object.xml
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe-object.xml	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/iframe-object.xml	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>IFrame</page-name>
+         <window>
+            <window-name>IFramePortletWindow</window-name>
+            <instance-ref>IFramePortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-app.xml
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-app.xml	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-app.xml	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>iframeportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-web.xml
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-web.xml	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/jboss-web.xml	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet-instances.xml
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet-instances.xml	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet-instances.xml	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,10 @@
+<?xml version="1.0" standalone="yes"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-id>IFramePortletInstance</instance-id>
+         <portlet-ref>IFramePortlet</portlet-ref>
+      </instance>
+   </deployment>
+</deployments>

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet.xml
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet.xml	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/portlet.xml	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>IFramePortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.iframe.IFramePortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>IFrame</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>

Added: portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/web.xml
===================================================================
--- portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/web.xml	2006-07-24 17:20:11 UTC (rev 79)
+++ portlets/2_4/src/IFramePortlet/src/resources/iframeportlet-war/WEB-INF/web.xml	2006-07-24 17:26:06 UTC (rev 80)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>




More information about the jboss-svn-commits mailing list