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 2007/06/26 16:17:33 UTC
svn commit: r550813 - in /portals/jetspeed-2/trunk/components:
cm/src/java/org/apache/jetspeed/cache/impl/EhPortletContentCacheImpl.java
portal/src/java/org/apache/jetspeed/decoration/DecorationValve.java
Author: taylor
Date: Tue Jun 26 07:17:32 2007
New Revision: 550813
URL: http://svn.apache.org/viewvc?view=rev&rev=550813
Log:
https://issues.apache.org/jira/browse/JS2-739
More testing, Bug fixes (from Woonsan Ko), cleanup
Modified:
portals/jetspeed-2/trunk/components/cm/src/java/org/apache/jetspeed/cache/impl/EhPortletContentCacheImpl.java
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/DecorationValve.java
Modified: portals/jetspeed-2/trunk/components/cm/src/java/org/apache/jetspeed/cache/impl/EhPortletContentCacheImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/cm/src/java/org/apache/jetspeed/cache/impl/EhPortletContentCacheImpl.java?view=diff&rev=550813&r1=550812&r2=550813
==============================================================================
--- portals/jetspeed-2/trunk/components/cm/src/java/org/apache/jetspeed/cache/impl/EhPortletContentCacheImpl.java (original)
+++ portals/jetspeed-2/trunk/components/cm/src/java/org/apache/jetspeed/cache/impl/EhPortletContentCacheImpl.java Tue Jun 26 07:17:32 2007
@@ -323,7 +323,10 @@
public void invalidate(RequestContext context)
{
String themeCacheKey = createSessionKey(context);
- Theme theme = (Theme)context.getRequest().getSession().getAttribute(themeCacheKey);
- theme.setInvalidated(true);
+ Theme theme = (Theme)context.getRequest().getSession().getAttribute(themeCacheKey);
+ if (theme != null)
+ {
+ theme.setInvalidated(true);
+ }
}
}
Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/DecorationValve.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/DecorationValve.java?view=diff&rev=550813&r1=550812&r2=550813
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/DecorationValve.java (original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/decoration/DecorationValve.java Tue Jun 26 07:17:32 2007
@@ -106,14 +106,11 @@
public void invoke(RequestContext requestContext, ValveContext context) throws PipelineException
{
- long start = System.currentTimeMillis();
- boolean isAjaxRequest = (context == null);
-
- initFragments( requestContext, isAjaxRequest, null );
-
- long end = System.currentTimeMillis();
- // TODO: remove this
- System.out.println(end - start);
+ //long start = System.currentTimeMillis();
+ boolean isAjaxRequest = (context == null);
+ initFragments( requestContext, isAjaxRequest, null );
+ //long end = System.currentTimeMillis();
+ //System.out.println(end - start);
if (!isAjaxRequest)
{
context.invokeNext(requestContext);
@@ -153,7 +150,6 @@
if (theme != null)
{
- System.out.println("Reusing Theme " + themeCacheKey);
theme.init(page, decorationFactory, requestContext);
requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_ATTRIBUTE, theme);
@@ -161,7 +157,6 @@
Fragment themeFragment = themePage.getRootFragment();
page.setRootFragment(themeFragment);
- // TODO: IS THIS NECESSARY????
ContentPage contentThemePage = ((PageTheme)theme).getContentPage();
ContentFragment contentThemeFragment = contentThemePage.getRootContentFragment();
page.setRootContentFragment(contentThemeFragment);
@@ -174,13 +169,11 @@
if (theme.isInvalidated() && !solo)
{
- System.out.println("*** INVALIDATED: " + themeCacheKey);
requestContext.setSessionAttribute(themeCacheKey, theme);
theme.setInvalidated(false);
}
return;
}
- System.out.println("*** new" );
theme = decorationFactory.getTheme(page, requestContext);
requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_ATTRIBUTE, theme);
if ( fragments == null || fragments.size() == 0 )
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org