org.apache.myfaces.config

Class MyfacesConfig


public class MyfacesConfig
extends java.lang.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 MyfacesConfig
getCurrentInstance(ExternalContext extCtx)
boolean
isAllowJavascript()
Do not use this in renderers directly!
boolean
isAutoScroll()
boolean
isDetectJavascript()
boolean
isPrettyHtml()
void
setAllowJavascript(boolean allowJavascript)
void
setAutoScroll(boolean autoScroll)
void
setDetectJavascript(boolean detectJavascript)
void
setPrettyHtml(boolean prettyHtml)

Method Details

getCurrentInstance

public static MyfacesConfig getCurrentInstance(ExternalContext extCtx)

isAllowJavascript

public boolean isAllowJavascript()

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)