Class FacesConfiguration

java.lang.Object
org.apache.empire.jsf2.app.FacesConfiguration

public class FacesConfiguration extends Object
FacesConfiguration Allows programmatic Faces configuration as an alternative to the faces-config.xml In order to provide custom configuration you must override the class WebAppStartupListener and put it in the faces-config.xml
 
   <system-event-listener-class>de.volkswagen.jsf.FacesStartupListener</system-event-listener-class>
 
Further you must call the super constructor with a FacesConfiguration class like this:
   public FacesStartupListener()
   {
      super(FacesExtensions.class);
   }
 
  • Field Details

    • log

      protected static final org.slf4j.Logger log
    • EMPIRE_COMPONENT_FAMILY

      public static final String EMPIRE_COMPONENT_FAMILY
      See Also:
    • facesImpl

      protected final FacesImplementation facesImpl
    • externalContext

      protected javax.faces.context.ExternalContext externalContext
    • application

      protected javax.faces.application.Application application
  • Constructor Details

  • Method Details

    • isInitialized

      public static boolean isInitialized()
    • getProjectStage

      public static javax.faces.application.ProjectStage getProjectStage()
    • initialize

      public static <T extends FacesConfiguration> void initialize(Class<T> configClass, javax.faces.context.FacesContext startupContext, FacesImplementation facesImpl)
      Static Initializer
      Parameters:
      configClass - the configuration class
      startupContext - the startupContext
      facesImpl - the Faces implementation
    • initialize

      public final void initialize(javax.faces.context.FacesContext startupContext)
    • initAll

      protected void initAll(javax.faces.context.FacesContext context)
    • initFacesParams

      protected void initFacesParams()
    • initFactories

      protected void initFactories()
    • initNavigationHandler

      protected void initNavigationHandler()
    • initResourceHandler

      protected void initResourceHandler()
    • initConverters

      protected void initConverters()
    • initElResolvers

      protected void initElResolvers()
    • initLifecycle

      protected void initLifecycle(FacesConfiguration.LifecycleUpdater lcu)
    • initSearchExpressionResolvers

      protected void initSearchExpressionResolvers()
    • initComponents

      protected void initComponents()
    • initRenderers

      protected void initRenderers(FacesConfiguration.RenderKitUpdater rku)
    • initManagedBeans

      protected void initManagedBeans()
    • initControls

      protected void initControls()
    • getBeanStorageProvider

      protected FacesImplementation.BeanStorageProvider getBeanStorageProvider()
    • getApplicationRenderKit

      protected javax.faces.render.RenderKit getApplicationRenderKit(javax.faces.context.FacesContext context)
    • setFacesInitParam

      protected void setFacesInitParam(String paramName, Object paramValue, boolean overwriteExisting)
    • setFacesInitParam

      protected void setFacesInitParam(String paramName, Object paramValue)
    • setFacesInitParam

      protected void setFacesInitParam(Enum<?> paramName, Object paramValue)
    • addConverter

      protected void addConverter(Class<?> targetClass, Class<? extends javax.faces.convert.Converter> converterClass)
    • addComponent

      protected void addComponent(String componentFamily, Class<? extends javax.faces.component.UIComponent> clazz)
    • addManagedBean

      protected void addManagedBean(String beanName, Class<?> beanClass, BeanScope beanScope)
    • addManagedBean

      protected void addManagedBean(Class<?> beanClass, BeanScope scope)
    • replaceComponent

      protected void replaceComponent(String componentType, Class<? extends javax.faces.component.UIComponent> overrideComponent)
    • replaceComponent

      protected void replaceComponent(Class<? extends javax.faces.component.UIComponent> componentClassWithType, Class<? extends javax.faces.component.UIComponent> overrideComponent)
    • replaceComponent

      protected void replaceComponent(String componentFamily, Class<? extends javax.faces.component.UIComponent> componentClassToReplace, Class<? extends javax.faces.component.UIComponent> overrideComponent)
    • checkComponentTypeExists

      protected void checkComponentTypeExists(String componentType)
    • addELResolver

      protected void addELResolver(Class<? extends javax.el.ELResolver> resolverClass)
    • listCompoennts

      protected void listCompoennts()