portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r425152 - in /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF: portlet.xml view/datetime.jsp
Date Mon, 24 Jul 2006 19:15:16 GMT
Author: taylor
Date: Mon Jul 24 12:15:16 2006
New Revision: 425152

URL: http://svn.apache.org/viewvc?rev=425152&view=rev
Log:
example of putting a portlet in a decorator

Added:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp
Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml?rev=425152&r1=425151&r2=425152&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml (original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/portlet.xml Mon Jul
24 12:15:16 2006
@@ -1201,6 +1201,26 @@
             <short-title>Permissions</short-title>
         </portlet-info>
     </portlet>
-     
+
+  <portlet id="DateTimePortlet">
+    <init-param>
+      <name>ViewPage</name>
+      <value>/WEB-INF/view/datetime.jsp</value>
+    </init-param>
+    <portlet-name>DateTimePortlet</portlet-name>
+    <display-name>Date Time Portlet</display-name>
+    <portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</portlet-class>
+    <expiration-cache>-1</expiration-cache>
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>VIEW</portlet-mode>
+    </supports>
+    <supported-locale>en</supported-locale>
+    <portlet-info>
+      <title>Date Time</title>
+      <short-title>Time</short-title>
+    </portlet-info>
+  </portlet>
+         
 </portlet-app>
 

Added: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp?rev=425152&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp (added)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/datetime.jsp Mon
Jul 24 12:15:16 2006
@@ -0,0 +1 @@
+<%= new java.util.Date() %>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message