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.
MyfacesConfig is meant for components that implement some of the extended features
of MyFaces. Anyhow, using the MyFaces JSF implementation is no precondition for using
MyfacesConfig in custom components. Upon using another JSF implementation
(or omitting the extended init parameters) all config properties will simply have
their default values.
- Version:
- $Revision: 379755 $ $Date: 2006-02-22 11:44:39 +0000 (Wed, 22 Feb 2006) $
- Author:
- Manfred Geiler (latest modification by $Author: manolito $)
| 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()
isDetectJavascript
public boolean isDetectJavascript()
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.
isAutoScroll
public boolean isAutoScroll()
getAddResourceClass
public java.lang.String getAddResourceClass()
getAddResourceClassFromServletContext
public static java.lang.String getAddResourceClassFromServletContext(javax.servlet.ServletContext servletContext)
- ExtensionFilter needs access to AddResourceClass init param without having
an ExternalContext at hand.
Copyright 2006 Apache Software Foundation. All Rights Reserved.