org.apache.myfaces.config

Class MyfacesConfig

public class MyfacesConfig extends Object

Holds all configuration init parameters (from web.xml) that are independent from the core implementation. The parameters in this class are available to all shared, component and implementation classes. See RuntimeConfig for configuration infos that come from the faces-config files and are needed by the core implementation.
Method Summary
static MyfacesConfiggetCurrentInstance(ExternalContext extCtx)
booleanisAllowJavascript()
Do not use this in renderers directly!
booleanisAutoScroll()
booleanisDetectJavascript()
booleanisPrettyHtml()
voidsetAllowJavascript(boolean allowJavascript)
voidsetAutoScroll(boolean autoScroll)
voidsetDetectJavascript(boolean detectJavascript)
voidsetPrettyHtml(boolean prettyHtml)

Method Detail

getCurrentInstance

public static MyfacesConfig getCurrentInstance(ExternalContext extCtx)

isAllowJavascript

public boolean isAllowJavascript()
Do not use this in renderers directly! You should use JavascriptUtils to determine if javascript is allowed or not.

isAutoScroll

public boolean isAutoScroll()

isDetectJavascript

public boolean isDetectJavascript()

isPrettyHtml

public boolean isPrettyHtml()

setAllowJavascript

public void setAllowJavascript(boolean allowJavascript)

setAutoScroll

public void setAutoScroll(boolean autoScroll)

setDetectJavascript

public void setDetectJavascript(boolean detectJavascript)

setPrettyHtml

public void setPrettyHtml(boolean prettyHtml)