--- src\java\org\apache\jetspeed\modules\actions\portlets\WeatherAction.java 2003-10-29 16:59:29.000000000 +0100 +++ src\java\org\apache\jetspeed\modules\actions\portlets\WeatherAction.java 2003-10-29 16:54:18.000000000 +0100 @@ -114,14 +114,20 @@ Context context, RunData rundata ) { - String city = portlet.getPortletConfig().getInitParameter(this.WEATHER_CITY); - String state = portlet.getPortletConfig().getInitParameter(this.WEATHER_STATE); - String station = portlet.getPortletConfig().getInitParameter(this.WEATHER_STATION); - String cityInfo = getCityInfo(city, state, station); - context.put(this.WEATHER_CITY_INFO, cityInfo); - - String style = PortletConfigState.getParameter(portlet, rundata, this.WEATHER_STYLE, "infobox"); - context.put(this.WEATHER_STYLE,style); + + String cityInfo = PortletConfigState.getParameter(portlet, rundata, WEATHER_CITY_INFO, null); + //if (cityInfo == null) + //{ + String city = portlet.getPortletConfig().getInitParameter(WEATHER_CITY); + String state = portlet.getPortletConfig().getInitParameter(WEATHER_STATE); + String station = portlet.getPortletConfig().getInitParameter(WEATHER_STATION); + cityInfo = getCityInfo(city, state, station); + //} + context.put(WEATHER_CITY_INFO, cityInfo); + PortletConfigState.setInstanceParameter(portlet, rundata, WEATHER_CITY_INFO, cityInfo); + + String style = PortletConfigState.getParameter(portlet, rundata, WEATHER_STYLE, "infobox"); + context.put(WEATHER_STYLE,style); } /**