1 Reply Latest reply on Mar 4, 2010 10:57 AM by Daniel Lechner

    Injection fails with ScopeType.PAGE in JSFUnit

    Stan Silvert Newbie
      Hi guys,

      Can someone from the Seam team take a quick look at this?
      http://community.jboss.org/message/526618#526618

      In JSFUnit, I do this to restore Seam's request state:
      // code copied from org.jboss.seam.servlet.ContextualHttpServletRequest
         private void restoreConversation()
         {
            HttpServletRequest request = httpServletRequest();
            if (request == null) return;
            ServletLifecycle.beginRequest(request);
            ServletContexts.instance().setRequest(request);
            ConversationPropagation.instance().restoreConversationId( request.getParameterMap() );
            Manager.instance().restoreConversation();
            ServletLifecycle.resumeConversation(request);
            Manager.instance().handleConversationPropagation( request.getParameterMap() );
           
            this.iRestoredTheConversation = true;
         }

      Everything seems to work fine except for injection of the page scoped bean.  Any off-hand about ideas what could be causing this?

      Stan