SourceForge.net Logo

Package de.mindmatters.faces.spring.config

This package and its sub-packages provides glue code for comprehensive integration of JSF (JavaServer Faces) and the Spring framework.

See:
          Description

Interface Summary
ConfigWebApplicationContext Provides configuration for JSF's pluggable components (like UIComponents, Converters, Validators, ViewHandlers, NavigationHandlers, VariableResolver, ActionListener ...) based on "spring-beans.dtd" compatible config-files.
 

Class Summary
ConfigLoader Performs the actual initialization work for the jsf-spring-config root application context.
ConfigLoaderListener Bootstrap listener to start up jsf-spring-config root ConfigWebApplicationContext.
ConfigLoaderServlet Bootstrap servlet to start up jsf-spring-config root ConfigWebApplicationContext.
ConfigWebApplicationContextUtils Convenience methods to retrieve the jsf-spring-config root ConfigWebApplicationContext for a given ServletContext or FacesContext.
 

Package de.mindmatters.faces.spring.config Description

This package and its sub-packages provides glue code for comprehensive integration of JSF (JavaServer Faces) and the Spring framework. This is done in a implementation independent way so that it can be used with any JSF implementation.

Goals

The main goal of the config package (module) is to define JSF's pluggable components (like UIComponents, Converters, Validators, ViewHandlers, NavigationHandlers, VariableResolver, ActionListener ...) in a spring-beans.dtd compatible config-file to enable dependency injection (and all the other features of Spring's ApplicationContext) on these components.

Usage

The following sample configuration files show you how to enable the above mentioned features.

The web.xml configuration:

WEB-INF/web.xml fragment (as listener)

    <!--
        The listener used to load the jsf-spring-config context (the pluggable JSF components).
    -->
    <listener>
        <listener-class>de.mindmatters.faces.spring.config.ConfigLoaderListener</listener-class>
    </listener>

WEB-INF/web.xml fragment (as servlet)

    <!--
        The servlet used to load the jsf-spring-config context (the pluggable JSF components).
    -->
    <servlet>
        <servlet-name>ConfigLoader</servlet-name>
        <servlet-class>de.mindmatters.faces.spring.config.ConfigLoaderServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG