[ http://issues.apache.org/jira/browse/JS2-577?page=all ]
David Sean Taylor reassigned JS2-577: ------------------------------------- Assignee: David Sean Taylor > PortletWindowAccessorImpl.removeWindows(PortletEntity portletEntity) Doesn't > remove Portletwindows from cache > ------------------------------------------------------------------------------------------------------------- > > Key: JS2-577 > URL: http://issues.apache.org/jira/browse/JS2-577 > Project: Jetspeed 2 > Issue Type: Bug > Affects Versions: 2.1-dev > Reporter: Ethan Adams > Assigned To: David Sean Taylor > > Method uses portletEntity.getPortletWindowList() to get list of windows to > remove. Problem is that that method always returns an empty collection. So, > the windows don't get removed from cache. > Not sure this is a good fix, but this is the change I made. It seems to work. > List tmpWindows = new ArrayList(windows.entrySet()); > for(int i = 0; i < tmpWindows.size(); i++) > { > PortletWindow window = > (PortletWindow)((Map.Entry)tmpWindows.get(i)).getValue(); > > > if(portletEntity.getId().equals(window.getPortletEntity().getId())) > { > removeWindow(window); > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]