raphael 01/08/27 08:53:51
Modified: src/java/org/apache/jetspeed/portal/portlets
VelocityPortlet.java
Log:
overwrite the default JetspeedTemplateLink in context with the new context
aware PortletTemplateLink.
Revision Changes Path
1.8 +3 -0
jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/VelocityPortlet.java
Index: VelocityPortlet.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/VelocityPortlet.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- VelocityPortlet.java 2001/08/16 15:08:54 1.7
+++ VelocityPortlet.java 2001/08/27 15:53:51 1.8
@@ -65,6 +65,7 @@
import org.apache.jetspeed.portal.portlets.AbstractPortlet;
import org.apache.jetspeed.portal.PortletException;
import org.apache.jetspeed.services.TemplateLocator;
+import org.apache.jetspeed.util.template.PortletTemplateLink;
// Ecs stuff
import org.apache.ecs.ConcreteElement;
@@ -111,6 +112,8 @@
// Put the request and session based contexts
TurbinePull.populateContext(context, rundata);
+ context.put( "jlink", new PortletTemplateLink(rundata,this) );
+
String actionName = getPortletConfig().getInitParameter("action");
if (actionName != null)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]