SourceForge.net Logo

Package de.mindmatters.faces.spring.context

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

See:
          Description

Interface Summary
FacesWebApplicationContext Provides configuration for managed beans.
 

Class Summary
ContextLoader Performs the actual initialization work for the faces root application context.
ContextLoaderListener Bootstrap listener to start up faces' root WebApplicationContext.
ContextLoaderServlet Bootstrap servlet to start up faces' root WebApplicationContext.
FacesWebApplicationContextUtils Convenience methods to retrieve the faces root FacesWebApplicationContext for a given ServletContext or FacesContext.
ScopeApplicationEventMulticaster EventMulticaster that propagates events not only to singletons and prototypes instantiated on startup of type ApplicationListener (default behaviour of Spring) but also to listeners (managed beans) in session and request scope.
 

Package de.mindmatters.faces.spring.context 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 jsf-spring is to provide code to integrate the two frameworks as transparently as possible:

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 faces context (the managed and spring beans).
    -->
    <listener>
        <listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</listener-class>
    </listener>

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

    <!--
        The servlet used to load the faces context (the managed and spring beans).
    -->
    <servlet>
        <servlet-name>ContextLoader</servlet-name>
        <servlet-class>de.mindmatters.faces.spring.context.ContextLoaderServlet</servlet-class>
    </servlet>


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG