/** * {@inheritDoc} */ @Override public boolean isUnknownWindowIdsAllowed() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUnknownWindowIdsAllowed()); }
/** * {@inheritDoc} */ @Override public boolean isUnknownWindowIdsAllowed() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUnknownWindowIdsAllowed()); }
protected void init() { this.windowHandler = CodiUtils.getContextualReferenceByClass(WindowHandler.class); this.windowContextQuotaHandler = CodiUtils.getContextualReferenceByClass(WindowContextQuotaHandler.class); this.allowUnknownWindowIds = this.windowContextConfig.isUnknownWindowIdsAllowed(); this.urlParameterSupported = this.windowContextConfig.isUrlParameterSupported(); this.projectStageDevelopment = ProjectStage.Development == this.projectStage; }
protected void init() { this.windowHandler = CodiUtils.getContextualReferenceByClass(WindowHandler.class); this.windowContextQuotaHandler = CodiUtils.getContextualReferenceByClass(WindowContextQuotaHandler.class); this.allowUnknownWindowIds = this.windowContextConfig.isUnknownWindowIdsAllowed(); this.urlParameterSupported = this.windowContextConfig.isUrlParameterSupported(); this.projectStageDevelopment = ProjectStage.Development == this.projectStage; }
protected void init() { this.windowHandler = CodiUtils.getContextualReferenceByClass(WindowHandler.class); this.windowContextQuotaHandler = CodiUtils.getContextualReferenceByClass(WindowContextQuotaHandler.class); this.allowUnknownWindowIds = this.windowContextConfig.isUnknownWindowIdsAllowed(); this.urlParameterSupported = this.windowContextConfig.isUrlParameterSupported(); this.projectStageDevelopment = ProjectStage.Development == this.projectStage; }
windowHandler, urlParameterSupported, windowContextConfig.isUnknownWindowIdsAllowed());
windowHandler, urlParameterSupported, windowContextConfig.isUnknownWindowIdsAllowed());
windowHandler, urlParameterSupported, windowContextConfig.isUnknownWindowIdsAllowed());
public static void tryToRestoreTheWindowIdEagerly(FacesContext facesContext, EditableWindowContextManager windowContextManager, WindowHandler windowHandler, WindowContextConfig windowContextConfig) { if (RequestCache.getCurrentWindowContext() == null && windowContextConfig.isEagerWindowContextDetectionEnabled()) { //don't use: windowContextManager.getCurrentWindowContext(); //it would create a new window-id immediately and //it would break other features. String windowId = resolveWindowContextId(windowHandler, windowContextConfig.isUrlParameterSupported(), windowContextConfig.isUnknownWindowIdsAllowed()); if (windowId != null) { boolean active = windowContextManager.isWindowContextActive(windowId); if (active) { RequestCache.setCurrentWindowContext(windowContextManager.getWindowContext(windowId)); //don't remove it - e.g. needed as marker for the view-handler facesContext.getExternalContext().getRequestMap() .put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY, windowId); } } } }
public static void tryToRestoreTheWindowIdEagerly(FacesContext facesContext, EditableWindowContextManager windowContextManager, WindowHandler windowHandler, WindowContextConfig windowContextConfig) { if (RequestCache.getCurrentWindowContext() == null && windowContextConfig.isEagerWindowContextDetectionEnabled()) { //don't use: windowContextManager.getCurrentWindowContext(); //it would create a new window-id immediately and //it would break other features. String windowId = resolveWindowContextId(windowHandler, windowContextConfig.isUrlParameterSupported(), windowContextConfig.isUnknownWindowIdsAllowed()); if (windowId != null) { boolean active = windowContextManager.isWindowContextActive(windowId); if (active) { RequestCache.setCurrentWindowContext(windowContextManager.getWindowContext(windowId)); //don't remove it - e.g. needed as marker for the view-handler facesContext.getExternalContext().getRequestMap() .put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY, windowId); } } } }
public static void tryToRestoreTheWindowIdEagerly(FacesContext facesContext, EditableWindowContextManager windowContextManager, WindowHandler windowHandler, WindowContextConfig windowContextConfig) { if (RequestCache.getCurrentWindowContext() == null && windowContextConfig.isEagerWindowContextDetectionEnabled()) { //don't use: windowContextManager.getCurrentWindowContext(); //it would create a new window-id immediately and //it would break other features. String windowId = resolveWindowContextId(windowHandler, windowContextConfig.isUrlParameterSupported(), windowContextConfig.isUnknownWindowIdsAllowed()); if (windowId != null) { boolean active = windowContextManager.isWindowContextActive(windowId); if (active) { RequestCache.setCurrentWindowContext(windowContextManager.getWindowContext(windowId)); //don't remove it - e.g. needed as marker for the view-handler facesContext.getExternalContext().getRequestMap() .put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY, windowId); } } } }
(!windowContextConfig.isUnknownWindowIdsAllowed() && !ConversationUtils.isWindowActive(this.windowContextManager, windowId)))
(!windowContextConfig.isUnknownWindowIdsAllowed() && !ConversationUtils.isWindowActive(this.windowContextManager, windowId)))
(!windowContextConfig.isUnknownWindowIdsAllowed() && !ConversationUtils.isWindowActive(this.windowContextManager, windowId)))