2 Replies Latest reply on May 26, 2006 11:00 AM by liudan2005

    unable to get FacesContext when session starts with CR3

    liudan2005

      It worked before until I updated to seam 1.0 cr3 and jboss 4.0.4ga.

      I have a session scoped component annotated with @Startup. in my @Create method, I try to retrieve FacesContext in order to get HTTP request. But I get null value.

      This worked before i've upgraed to CR3.

        • 1. Re: unable to get FacesContext when session starts with CR3
          gavin.king

          Did your version of MyFaces also change. (ie. is it MyFaces 1.1.1 or MyFaces 1.1.3)

          I don't believe I changed anything here (though it is possible).

          Note that the session startup stuff is called from a servlet context listener, so we can't really be sure that there is a FacesContext, I suppose....

          • 2. Re: unable to get FacesContext when session starts with CR3
            liudan2005

            yes, I've also upgraded myfaces as well.

            What I need is to check user's cookies when session is created. that's why I need to get http request object. Is there any other way to do this, or anyway to get around?

            In previous version(before I upgrade), this worked in IE but not firefox. Now it stopped working in both IE and firefox. I do need a way around.