Author: mwringe
Date: 2010-03-01 17:18:46 -0500 (Mon, 01 Mar 2010)
New Revision: 1918
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
Log:
Pass cookies set in a portlet off to the portal (GTNPORTAL-763).
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-03-01
16:50:21 UTC (rev 1917)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-03-01
22:18:46 UTC (rev 1918)
@@ -53,6 +53,7 @@
import javax.portlet.MimeResponse;
import javax.portlet.PortletMode;
import javax.portlet.WindowState;
+import javax.servlet.http.Cookie;
/**
* Created by The eXo Platform SAS May 8, 2006
@@ -231,6 +232,16 @@
}
}
}
+
+ //setup up portlet cookies
+ if (fragmentResponse.getProperties().getCookies() != null)
+ {
+ List<Cookie> cookies =
fragmentResponse.getProperties().getCookies();
+ for (Cookie cookie : cookies)
+ {
+ prcontext.getResponse().addCookie(cookie);
+ }
+ }
//setup markup headers
if (fragmentResponse.getProperties().getMarkupHeaders() != null)
Show replies by date