Author: chris.laprun(a)jboss.com
Date: 2010-08-06 19:11:50 -0400 (Fri, 06 Aug 2010)
New Revision: 3770
Modified:
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceResponseImpl.java
Log:
- GTNPC-23: use CacheLevel.PAGE if no cache is provided by the invocation.
Modified:
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceResponseImpl.java
===================================================================
---
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceResponseImpl.java 2010-08-06
23:08:57 UTC (rev 3769)
+++
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/jsr168/api/ResourceResponseImpl.java 2010-08-06
23:11:50 UTC (rev 3770)
@@ -54,7 +54,12 @@
super(invocation, preq);
//
- this.cacheability = invocation.getCacheLevel();
+ CacheLevel cacheLevel = invocation.getCacheLevel();
+ if (cacheLevel == null)
+ {
+ cacheLevel = CacheLevel.PAGE;
+ }
+ this.cacheability = cacheLevel;
}
public void setLocale(Locale locale)