protected void restoreInjectionPoints(@Observes @BeforePhase(PROCESS_VALIDATIONS) PhaseEvent event, CodiCoreConfig codiCoreConfig) { FacesContext facesContext = event.getFacesContext(); UIViewRoot uiViewRoot = facesContext.getViewRoot(); restoreAllInjectionPoints(uiViewRoot, codiCoreConfig); facesContext.getExternalContext().getRequestMap().put(this.injectionMarker, uiViewRoot.getViewId()); }
protected void restoreInjectionPoints(@Observes @BeforePhase(PROCESS_VALIDATIONS) PhaseEvent event, CodiCoreConfig codiCoreConfig) { FacesContext facesContext = event.getFacesContext(); UIViewRoot uiViewRoot = facesContext.getViewRoot(); restoreAllInjectionPoints(uiViewRoot, codiCoreConfig); facesContext.getExternalContext().getRequestMap().put(this.injectionMarker, uiViewRoot.getViewId()); }
protected void restoreInjectionPoints(@Observes @BeforePhase(PROCESS_VALIDATIONS) PhaseEvent event, CodiCoreConfig codiCoreConfig) { FacesContext facesContext = event.getFacesContext(); UIViewRoot uiViewRoot = facesContext.getViewRoot(); restoreAllInjectionPoints(uiViewRoot, codiCoreConfig); facesContext.getExternalContext().getRequestMap().put(this.injectionMarker, uiViewRoot.getViewId()); }
protected void restoreInjectionPointsForSkippedRequests(@Observes @BeforePhase(RENDER_RESPONSE) PhaseEvent event, CodiCoreConfig codiCoreConfig, RequestTypeResolver requestTypeResolver) { //injection is performed by the application wrapper provided by codi in case of initial and get requests if(!requestTypeResolver.isPostRequest()) { return; } FacesContext facesContext = event.getFacesContext(); UIViewRoot uiViewRoot = facesContext.getViewRoot(); if(isSkippedPostback(facesContext)) { //restored view but the life-cycle wasn't executed completely restoreAllInjectionPoints(uiViewRoot, codiCoreConfig); } }
protected void restoreInjectionPointsForSkippedRequests(@Observes @BeforePhase(RENDER_RESPONSE) PhaseEvent event, CodiCoreConfig codiCoreConfig, RequestTypeResolver requestTypeResolver) { //injection is performed by the application wrapper provided by codi in case of initial and get requests if(!requestTypeResolver.isPostRequest()) { return; } FacesContext facesContext = event.getFacesContext(); UIViewRoot uiViewRoot = facesContext.getViewRoot(); if(isSkippedPostback(facesContext)) { //restored view but the life-cycle wasn't executed completely restoreAllInjectionPoints(uiViewRoot, codiCoreConfig); } }
protected void restoreInjectionPointsForSkippedRequests(@Observes @BeforePhase(RENDER_RESPONSE) PhaseEvent event, CodiCoreConfig codiCoreConfig, RequestTypeResolver requestTypeResolver) { //injection is performed by the application wrapper provided by codi in case of initial and get requests if(!requestTypeResolver.isPostRequest()) { return; } FacesContext facesContext = event.getFacesContext(); UIViewRoot uiViewRoot = facesContext.getViewRoot(); if(isSkippedPostback(facesContext)) { //restored view but the life-cycle wasn't executed completely restoreAllInjectionPoints(uiViewRoot, codiCoreConfig); } }