Monday, October 5, 2009

cookies & ICEfaces

((HttpServletRequest)((BridgeExternalContext) FacesContext.getCurrentInstance().getExternalContext()).getRequest()).getCookies()
returns Cookie[]

((BridgeExternalContext) FacesContext.getCurrentInstance()
.getExternalContext()).addCookie(new Cookie(COOKIE_NAME, cookieValue));

No comments:

Post a Comment