5 Replies Latest reply on May 28, 2009 4:05 AM by Yasser Hawari

    Seam 2.1 issue: httpServletRequest null within a Create-method

    Tobias Hill Newbie

      I have two factories (as described in HowCanIAccessTheHttpServletRequestOrSessionDirectly):


      <factory name="httpRequest"
        value="#{facesContext.externalContext.request}"
        auto-create="true"/>
      
      <factory name="httpSession"
        value="#{facesContext.externalContext.request.session}"
        auto-create="true"/>
      



      They are accessed from a @Create-annotated method (essentially to deal with some cookie-values when a session starts). This has worked fine in seam 2.0.x but unfortunately evaluates to null in 2.1.0.GA.


      Possibly this problem is related to my other posting / jira, but now it seems that the JBoss case behaves as bad as the SeamTest case.