[jboss-user] [JBoss Seam] - Selector.getCookie()

monkeyden do-not-reply at jboss.com
Fri Jun 15 13:14:09 EDT 2007


We have a login section with a remember me checkbox on the first page of our application.  For some reason, ctx is null when it reaches here:
   protected Cookie getCookie()
  |    {
  |       FacesContext ctx = FacesContext.getCurrentInstance();
  |       if (ctx != null)
  |       {
  |           return (Cookie) ctx.getExternalContext().getRequestCookieMap()
  |             .get( getCookieName() );
  |       }
  |       else
  |       {
  |          return null;
  |       }
  |    }

The cookie is there, it's just never retrieved because of FacesContext.  Any clues?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054845#4054845

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054845



More information about the jboss-user mailing list