Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-06-15


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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.