org.apache.myfaces.shared_impl.config
Class MyfacesConfig
java.lang.Object
org.apache.myfaces.shared_impl.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: 472618 $ $Date: 2006-11-08 21:06:54 +0100 (Mi, 08 Nov 2006) $
- Author:
- Manfred Geiler (latest modification by $Author: grantsmith $)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INIT_PARAM_RESOURCE_VIRTUAL_PATH
public static final java.lang.String INIT_PARAM_RESOURCE_VIRTUAL_PATH
- See Also:
- Constant Field Values
INIT_PARAM_RESOURCE_VIRTUAL_PATH_DEFAULT
public static final java.lang.String INIT_PARAM_RESOURCE_VIRTUAL_PATH_DEFAULT
- See Also:
- Constant Field Values
MyfacesConfig
public MyfacesConfig()
getCurrentInstance
public static MyfacesConfig getCurrentInstance(javax.faces.context.ExternalContext extCtx)
getResourceVirtualPath
public java.lang.String getResourceVirtualPath()
isPrettyHtml
public boolean isPrettyHtml()
isDetectJavascript
public boolean isDetectJavascript()
isReadonlyAsDisabledForSelect
public boolean isReadonlyAsDisabledForSelect()
isTomahawkAvailable
public boolean isTomahawkAvailable()
isMyfacesImplAvailable
public boolean isMyfacesImplAvailable()
isRiImplAvailable
public boolean isRiImplAvailable()
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.
isCheckExtensionsFilter
public boolean isCheckExtensionsFilter()
- Should the environment be checked so that the ExtensionsFilter will work properly.
setCheckExtensionsFilter
public void setCheckExtensionsFilter(boolean extensionsFilter)
Copyright © 2011. All Rights Reserved.