org.apache.myfaces.config
Class MyfacesConfig
java.lang.Object
org.apache.myfaces.config.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyfacesConfig
public MyfacesConfig()
getCurrentInstance
public static MyfacesConfig getCurrentInstance(javax.faces.context.ExternalContext extCtx)
isPrettyHtml
public boolean isPrettyHtml()
setPrettyHtml
public void setPrettyHtml(boolean prettyHtml)
isDetectJavascript
public boolean isDetectJavascript()
setDetectJavascript
public void setDetectJavascript(boolean detectJavascript)
isAllowJavascript
public boolean isAllowJavascript()
- Do not use this in renderers directly!
You should use
JavascriptUtils.isJavascriptAllowed(javax.faces.context.ExternalContext)
to determine if javascript is allowed or not.
setAllowJavascript
public void setAllowJavascript(boolean allowJavascript)
isAutoScroll
public boolean isAutoScroll()
setAutoScroll
public void setAutoScroll(boolean autoScroll)