Author: julien(a)jboss.com
Date: 2008-07-27 08:55:55 -0400 (Sun, 27 Jul 2008)
New Revision: 11595
Modified:
branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/weather/WeatherPortlet.java
branches/JBoss_Portal_Branch_2_7/core-samples/src/resources/portal-weather-samples-war/WEB-INF/portlet.xml
Log:
no need to set the expiration cache in portlet.xml if we always set it programmaticially
during the renderp phase
Modified:
branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/weather/WeatherPortlet.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/weather/WeatherPortlet.java 2008-07-27
12:50:22 UTC (rev 11594)
+++
branches/JBoss_Portal_Branch_2_7/core-samples/src/main/org/jboss/portal/core/samples/weather/WeatherPortlet.java 2008-07-27
12:55:55 UTC (rev 11595)
@@ -108,8 +108,9 @@
protected void doView(RenderRequest request, RenderResponse response) throws
IOException, PortletException
{
-// response.setProperty("expiration-cache",
request.getPreferences().getValue("expires", "180"));
+ response.setProperty("expiration-cache",
request.getPreferences().getValue("expires", "180"));
+ //
InputStream xmlInputStream = null;
InputStream xslInputStream = null;
Modified:
branches/JBoss_Portal_Branch_2_7/core-samples/src/resources/portal-weather-samples-war/WEB-INF/portlet.xml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-samples/src/resources/portal-weather-samples-war/WEB-INF/portlet.xml 2008-07-27
12:50:22 UTC (rev 11594)
+++
branches/JBoss_Portal_Branch_2_7/core-samples/src/resources/portal-weather-samples-war/WEB-INF/portlet.xml 2008-07-27
12:55:55 UTC (rev 11595)
@@ -44,7 +44,6 @@
<name>base_url</name>
<
value>http://xml.weather.yahoo.com/forecastrss?p=</value>
</init-param>
- <!--<expiration-cache>180</expiration-cache>-->
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>