org.apache.myfaces.extensions.cdi.jsf.api.config
Class JsfModuleConfig

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.core.api.config.AbstractAttributeAware
      extended by org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig
All Implemented Interfaces:
Serializable, AttributeAware, CodiConfig

@ApplicationScoped
public class JsfModuleConfig
extends AbstractAttributeAware
implements CodiConfig

Config for all JSF specific configurations.

See Also:
Serialized Form

Constructor Summary
protected JsfModuleConfig()
           
 
Method Summary
 boolean isAlwaysKeepMessages()
          Per default all faces-messages are preserved for the next rendering process
 boolean isInitialRedirectEnabled()
          If the initial redirect is enabled, a redirect will be performed for adding the current window-id to the url.
 boolean isInvalidValueAwareMessageInterpolatorEnabled()
          Allows to use e.g.: "Validation error: {invalidValue} isn't a valid value."
 boolean isUseViewConfigsAsNavigationCasesEnabled()
          esp useful for JSF 2.0
 
Methods inherited from class org.apache.myfaces.extensions.cdi.core.api.config.AbstractAttributeAware
containsAttribute, getAttribute, initConfig, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsfModuleConfig

protected JsfModuleConfig()
Method Detail

isInitialRedirectEnabled

public boolean isInitialRedirectEnabled()
If the initial redirect is enabled, a redirect will be performed for adding the current window-id to the url.

Returns:
true for activating it, false otherwise

isUseViewConfigsAsNavigationCasesEnabled

public boolean isUseViewConfigsAsNavigationCasesEnabled()
esp useful for JSF 2.0

Returns:
true for creating additional navigation-cases based on view configs for ConfigurableNavigationHandler#getNavigationCases

isInvalidValueAwareMessageInterpolatorEnabled

public boolean isInvalidValueAwareMessageInterpolatorEnabled()
Allows to use e.g.: "Validation error: {invalidValue} isn't a valid value."

Returns:
true if the InvalidValueAwareMessageInterpolator should be used, false otherwise

isAlwaysKeepMessages

public boolean isAlwaysKeepMessages()
Per default all faces-messages are preserved for the next rendering process

Returns:
true if the messages should be preserved automatically, false otherwise


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.