You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by dl...@apache.org on 2007/01/05 18:18:00 UTC
svn commit: r493093 -
/portals/wsrp4j/trunk/commons-consumer/src/java/org/apache/wsrp4j/commons/consumer/driver/portletdriver/PortletDriverImpl.java
Author: dlouzan
Date: Fri Jan 5 09:17:59 2007
New Revision: 493093
URL: http://svn.apache.org/viewvc?view=rev&rev=493093
Log:
Modified templates generation so they only get generated on the render phase.
Modified:
portals/wsrp4j/trunk/commons-consumer/src/java/org/apache/wsrp4j/commons/consumer/driver/portletdriver/PortletDriverImpl.java
Modified: portals/wsrp4j/trunk/commons-consumer/src/java/org/apache/wsrp4j/commons/consumer/driver/portletdriver/PortletDriverImpl.java
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/commons-consumer/src/java/org/apache/wsrp4j/commons/consumer/driver/portletdriver/PortletDriverImpl.java?view=diff&rev=493093&r1=493092&r2=493093
==============================================================================
--- portals/wsrp4j/trunk/commons-consumer/src/java/org/apache/wsrp4j/commons/consumer/driver/portletdriver/PortletDriverImpl.java (original)
+++ portals/wsrp4j/trunk/commons-consumer/src/java/org/apache/wsrp4j/commons/consumer/driver/portletdriver/PortletDriverImpl.java Fri Jan 5 09:17:59 2007
@@ -239,7 +239,7 @@
return markupParams;
}
- private RuntimeContext getRuntimeContext(WSRPBaseRequest request) {
+ private RuntimeContext getRuntimeContext(WSRPBaseRequest request, boolean isRender) {
RuntimeContext runtimeContext = new RuntimeContext();
runtimeContext.setUserAuthentication(consumerEnv.getUserAuthentication());
runtimeContext.setPortletInstanceKey(request.getPortletInstanceKey());
@@ -267,7 +267,7 @@
}
if (doesUrlTemplateProcess != null && templateComposer != null
- && doesUrlTemplateProcess.booleanValue()) {
+ && doesUrlTemplateProcess.booleanValue() && isRender) {
Templates templates = new Templates();
templates.setBlockingActionTemplate(templateComposer.createBlockingActionTemplate(true,
true, true, true));
@@ -363,7 +363,7 @@
request.setPortletContext(getPortlet().getPortletContext());
request.setMarkupParams(getMarkupParams(markupRequest));
- request.setRuntimeContext(getRuntimeContext(markupRequest));
+ request.setRuntimeContext(getRuntimeContext(markupRequest, true));
RegistrationContext regCtx = producer.getRegistrationContext();
if (regCtx != null)
@@ -434,7 +434,7 @@
request.setPortletContext(getPortlet().getPortletContext());
request.setInteractionParams(getInteractionParams(actionRequest));
request.setMarkupParams(getMarkupParams(actionRequest));
- request.setRuntimeContext(getRuntimeContext(actionRequest));
+ request.setRuntimeContext(getRuntimeContext(actionRequest, false));
RegistrationContext regCtx = producer.getRegistrationContext();
if (regCtx != null)