JSF-Spring

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 root application context.
ContextLoaderListener Bootstrap listener to start up JSF-Spring's root WebApplicationContext.
ContextLoaderServlet Bootstrap servlet to start up Spring's root WebApplicationContext.
FacesWebApplicationContextUtils Convenience methods to retrieve the faces root FacesWebApplicationContext for a given FacesContext.
 

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>


JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG