You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2002/02/25 06:39:55 UTC
cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens Customize.jsp
taylor 02/02/24 21:39:55
Modified: webapp/WEB-INF/conf JetspeedResources.properties
demo-portlets.xreg portlets.xreg
webapp/WEB-INF/templates/jsp/screens Customize.jsp
Log:
- added IFrame portlet to registry, and a sample in demo portlets
- Customizer fixed for JSP-based templating! Thanks Bill Barnhill !!!
Revision Changes Path
1.66 +3 -1 jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties
Index: JetspeedResources.properties
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- JetspeedResources.properties 25 Feb 2002 04:25:37 -0000 1.65
+++ JetspeedResources.properties 25 Feb 2002 05:39:55 -0000 1.66
@@ -1,7 +1,7 @@
################################################################################
# Jetspeed Configuration
# Author: Kevin A. Burton (burton@apache.org)
-# $Id: JetspeedResources.properties,v 1.65 2002/02/25 04:25:37 taylor Exp $
+# $Id: JetspeedResources.properties,v 1.66 2002/02/25 05:39:55 taylor Exp $
################################################################################
# This is the main file you will need to configuration Jetspeed. If there are
# any secondary files they will be pointed to from this file.
@@ -455,6 +455,8 @@
#customizer.screen=Customizer1
#customizer.action=CustomizeUserPSMLFile
#include=CustomizerColors.properties
+
+URILookup.customize.uri=/portal/action/controls.Customize?reset=on
#########################################
# New User Registration mail support #
1.7 +10 -0 jakarta-jetspeed/webapp/WEB-INF/conf/demo-portlets.xreg
Index: demo-portlets.xreg
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/demo-portlets.xreg,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- demo-portlets.xreg 29 Dec 2001 04:16:26 -0000 1.6
+++ demo-portlets.xreg 25 Feb 2002 05:39:55 -0000 1.7
@@ -129,4 +129,14 @@
<parameter name="description4" value="" hidden="true"/>
<media-type ref="html"/>
</portlet-entry>
+ <portlet-entry name="JetspeedFramed" hidden="false" type="ref" parent="IFramePortlet" application="false" >
+ <meta-info>
+ <title>Jetspeed Framed</title>
+ <description>Navigate SomeSite within an IFRAME</description>
+ </meta-info>
+ <parameter name="source"
+ value="http://jakarta.apache.org/jetspeed"
+ hidden="false"/>
+ <media-type ref="html"/>
+ </portlet-entry>
</registry>
1.17 +3 -0 jakarta-jetspeed/webapp/WEB-INF/conf/portlets.xreg
Index: portlets.xreg
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/portlets.xreg,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- portlets.xreg 29 Dec 2001 04:16:26 -0000 1.16
+++ portlets.xreg 25 Feb 2002 05:39:55 -0000 1.17
@@ -107,4 +107,7 @@
<parameter name="bgcolor" value="gray" hidden="false"/>
<media-type ref="html"/>
</portlet-entry>
+ <portlet-entry name="IFramePortlet" hidden="false" type="abstract" application="false">
+ <classname>org.apache.jetspeed.portal.portlets.IFramePortlet</classname>
+ </portlet-entry>
</registry>
1.2 +29 -2 jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/Customize.jsp
Index: Customize.jsp
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/Customize.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Customize.jsp 28 May 2001 15:17:33 -0000 1.1
+++ Customize.jsp 25 Feb 2002 05:39:55 -0000 1.2
@@ -1,3 +1,30 @@
-<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
+<%@ page import="org.apache.jetspeed.util.template.JetspeedTool" %>
+<%@ page import="org.apache.jetspeed.services.rundata.JetspeedRunData" %>
+<%@ page import="org.apache.turbine.services.jsp.JspService" %>
+<%@ page import="org.apache.ecs.ConcreteElement" %>
+<%@ page import="org.apache.jetspeed.portal.Portlet" %>
+
+<%
+ JetspeedRunData data = (JetspeedRunData)pageContext.getAttribute(JspService.RUNDATA, PageContext.REQUEST_SCOPE);
+ data.setMode(data.CUSTOMIZE);
+ JetspeedTool jetspeed = new JetspeedTool(data);
+ Portlet customized = (Portlet)data.getCustomized();
+ // The above is returning null every time. Why?? --wab 23 feb 2002
+
+ if (customized != null)
+ {
+ ConcreteElement result = jetspeed.getCustomizer(customized).getContent(data);
+
+ //The ECS element must serialize in the character encoding
+ // of the response
+ result.setCodeSet( data.getResponse().getCharacterEncoding() );
+ result.output( data.getResponse().getWriter() );
+ }
+ else
+ {
+ data.getResponse().getWriter().println("No portlet to customize (null instance)");
+ }
+%>
+
+
-<jetspeed:pane name="customize" />
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>