@Inject protected DefaultWindowHandler(WindowContextConfig config) { this.useWindowAwareUrlEncoding = config.isUrlParameterSupported(); }
@Inject protected DefaultWindowHandler(WindowContextConfig config) { this.useWindowAwareUrlEncoding = config.isUrlParameterSupported(); }
@Inject protected DefaultWindowHandler(WindowContextConfig config) { this.useWindowAwareUrlEncoding = config.isUrlParameterSupported(); }
/** * {@inheritDoc} */ @Override public boolean isUrlParameterSupported() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUrlParameterSupported()); }
/** * {@inheritDoc} */ @Override public boolean isUrlParameterSupported() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUrlParameterSupported()); }
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; }
JsfModuleConfig jsfModuleConfig) boolean urlParameterSupported = windowContextConfig.isUrlParameterSupported(); boolean useWindowIdForFirstPage = jsfModuleConfig.isInitialRedirectEnabled();
JsfModuleConfig jsfModuleConfig) boolean urlParameterSupported = windowContextConfig.isUrlParameterSupported(); boolean useWindowIdForFirstPage = jsfModuleConfig.isInitialRedirectEnabled();
JsfModuleConfig jsfModuleConfig) boolean urlParameterSupported = windowContextConfig.isUrlParameterSupported(); boolean useWindowIdForFirstPage = jsfModuleConfig.isInitialRedirectEnabled();
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); } } } }