voyent
Is it possible read/write cookie with Icefaces 1.8.2.GA_P03 + Liferay-6.0.12?  XML
Forum Index -> Portals & Portlets
Author Message
tmoreira2020


Joined: 25/Sep/2009 00:00:00
Messages: 16
Offline


I tried different ways to read/write cookies with

Code:
 	ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
 	Map<String, Object> cookies = externalContext.getRequestCookieMap();
 	System.out.println("Cookies: " + cookies);
 
 	RenderRequest request = (RenderRequest)externalContext.getRequest();
 
 	System.out.println("Cookies: " + request.getCookies());
 
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


Looks to be a bug. I've created a JIRA:

http://jira.icesoft.org/browse/ICE-8135

From what I can tell it's only the initial request where the cookie map is not properly populated. Subsequent requests do show the cookie map with relevant values.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team