protected void afterResponseComplete(FacesContext facesContext) { //responseComplete() was called by one of the other phases, //so we will never get to the RENDER_RESPONSE phase //Note: we can't call Manager.instance().beforeRedirect() here, //since a redirect is not the only reason for a responseComplete ExternalContext externalContext = facesContext.getExternalContext(); Manager.instance().endRequest( externalContext.getSessionMap() ); FacesLifecycle.endRequest( facesContext.getExternalContext() ); }
private void tearDownConversation() { if (!this.iRestoredTheConversation) return; HttpServletRequest request = httpServletRequest(); Manager.instance().endRequest( new ServletRequestSessionMap(request) ); ServletLifecycle.endRequest(request); this.iRestoredTheConversation = false; }
private void tearDownConversation() { if (!this.iRestoredTheConversation) return; try { HttpServletRequest request = httpServletRequest(); Manager.instance().endRequest( new ServletRequestSessionMap(request) ); ServletLifecycle.endRequest(request); } catch (IllegalArgumentException e) { // ignore } finally { this.iRestoredTheConversation = false; } }
protected void afterRenderResponse(FacesContext facesContext) { //do this both before and after render, since conversations //and pageflows can begin during render FacesManager.instance().prepareBackswitch(facesContext); PersistenceContexts persistenceContexts = PersistenceContexts.instance(); if (persistenceContexts != null) { persistenceContexts.afterRender(); } ExternalContext externalContext = facesContext.getExternalContext(); Manager.instance().endRequest( externalContext.getSessionMap() ); FacesLifecycle.endRequest(externalContext); }
Manager.instance().endRequest( new ServletRequestSessionMap(request) ); ServletLifecycle.endRequest(request);
Manager.instance().endRequest( new ServletRequestSessionMap(request) );