private boolean isClientSideWindowHandlerRequest(FacesContext facesContext) { // no POST request and javascript enabled // NOTE that for POST-requests the windowId is saved in the state (see WindowContextIdHolderComponent) return !this.requestTypeResolver.isPostRequest() && clientConfig.isClientSideWindowHandlerRequest(facesContext); }
/** * {@inheritDoc} */ @Override public boolean isInvalidValueAwareMessageInterpolatorEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isInvalidValueAwareMessageInterpolatorEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isInitialRedirectEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isInitialRedirectEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isAlwaysKeepMessages() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isAlwaysKeepMessages()); } }
if (!isJavaScriptEnabled()) String userAgent = getUserAgent(facesContext);
/** * {@inheritDoc} */ @Override public boolean isUseViewConfigsAsNavigationCasesEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUseViewConfigsAsNavigationCasesEnabled()); }
/** * {@inheritDoc} */ @Override public String restoreWindowId(ExternalContext externalContext) { if (this.clientConfig.isJavaScriptEnabled()) { return (String) externalContext.getRequestMap().get(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY); } else { // fallback return super.restoreWindowId(externalContext); } }
/** * {@inheritDoc} */ @Override public boolean isInvalidValueAwareMessageInterpolatorEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isInvalidValueAwareMessageInterpolatorEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isInitialRedirectEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isInitialRedirectEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isAlwaysKeepMessages() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isAlwaysKeepMessages()); } }
if (!isJavaScriptEnabled()) String userAgent = getUserAgent(facesContext);
private boolean isClientSideWindowHandlerRequest(FacesContext facesContext) { // no POST request and javascript enabled // NOTE that for POST-requests the windowId is saved in the state (see WindowContextIdHolderComponent) return !this.requestTypeResolver.isPostRequest() && clientConfig.isClientSideWindowHandlerRequest(facesContext); }
/** * {@inheritDoc} */ @Override public boolean isUseViewConfigsAsNavigationCasesEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUseViewConfigsAsNavigationCasesEnabled()); }
/** * {@inheritDoc} */ @Override public String restoreWindowId(ExternalContext externalContext) { if (this.clientConfig.isJavaScriptEnabled()) { return (String) externalContext.getRequestMap().get(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY); } else { // fallback return super.restoreWindowId(externalContext); } }
@Produces @Dependent @Advanced @Named(BEAN_VALIDATION_VALIDATOR_FACTORY) public ValidatorFactory createValidatorFactory(JsfModuleConfig jsfModuleConfig) { if(jsfModuleConfig.isInvalidValueAwareMessageInterpolatorEnabled()) { return new InvalidValueAwareValidatorFactory(); } return new SerializableValidatorFactory(); } }
private boolean isClientSideWindowHandlerRequest(FacesContext facesContext) { // no POST request and javascript enabled // NOTE that for POST-requests the windowId is saved in the state (see WindowContextIdHolderComponent) return !this.requestTypeResolver.isPostRequest() && clientConfig.isClientSideWindowHandlerRequest(facesContext); }
private boolean isAddViewConfigsAsNavigationCaseActivated() { JsfModuleConfig config = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class); return config.isUseViewConfigsAsNavigationCasesEnabled(); } }
/** * {@inheritDoc} */ @Override public String restoreWindowId(ExternalContext externalContext) { if (this.clientConfig.isJavaScriptEnabled()) { return (String) externalContext.getRequestMap().get(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY); } else { // fallback return super.restoreWindowId(externalContext); } }
@Produces @Dependent @Advanced @Named(BEAN_VALIDATION_VALIDATOR_FACTORY) public ValidatorFactory createValidatorFactory(JsfModuleConfig jsfModuleConfig) { if(jsfModuleConfig.isInvalidValueAwareMessageInterpolatorEnabled()) { return new InvalidValueAwareValidatorFactory(); } return new SerializableValidatorFactory(); } }
@Produces @Dependent @Advanced @Named(BEAN_VALIDATION_VALIDATOR_FACTORY) public ValidatorFactory createValidatorFactory(JsfModuleConfig jsfModuleConfig) { if(jsfModuleConfig.isInvalidValueAwareMessageInterpolatorEnabled()) { return new InvalidValueAwareValidatorFactory(); } return new SerializableValidatorFactory(); } }