org.springframework.web.jsf |
Support classes for integrating a JSF web tier with a Spring middle tier
which is hosted in a Spring root WebApplicationContext.
Supports easy access to beans in the Spring root WebApplicationContext
from JSF EL expressions, for example in property values of JSF-managed beans.
|
Java Source File Name | Type | Comment |
DecoratingNavigationHandler.java | Class | Base class for JSF NavigationHandler implementations that want
to be capable of decorating an original NavigationHandler.
Supports the standard JSF style of decoration (through a constructor argument)
as well as an overloaded handleNavigation method with explicit
NavigationHandler argument (passing in the original NavigationHandler). |
DelegatingNavigationHandlerProxy.java | Class | JSF NavigationHandler implementation that delegates to a NavigationHandler
bean obtained from the Spring root WebApplicationContext.
Configure this handler proxy in your faces-config.xml file
as follows:
<application>
...
<navigation-handler>
org.springframework.web.jsf.DelegatingNavigationHandlerProxy
</navigation-handler>
...
</application>
By default, the Spring ApplicationContext will be searched for the NavigationHandler
under the bean name "jsfNavigationHandler". |
DelegatingPhaseListenerMulticaster.java | Class | JSF PhaseListener implementation that delegates to one or more Spring-managed
PhaseListener beans coming from the Spring root WebApplicationContext.
Configure this listener multicaster in your faces-config.xml file
as follows:
<application>
...
<phase-listener>
org.springframework.web.jsf.DelegatingPhaseListenerMulticaster
</phase-listener>
...
</application>
The multicaster will delegate all beforePhase and afterPhase
events to all target PhaseListener beans. |
DelegatingVariableResolver.java | Class | JSF 1.1 VariableResolver that first delegates to the Spring
root WebApplicationContext , then to the original resolver
of the underlying JSF implementation. |
FacesContextUtils.java | Class | Convenience methods to retrieve the root WebApplicationContext for a given
FacesContext. |
SpringBeanVariableResolver.java | Class | This is a subclass of the JSF 1.1
DelegatingVariableResolver ,
letting Spring bean definitions override other attributes of the same name. |
WebApplicationContextVariableResolver.java | Class | Special JSF 1.1 VariableResolver that exposes the Spring
WebApplicationContext instance under a variable named
"webApplicationContext".
In contrast to
DelegatingVariableResolver , this VariableResolver
does not resolve JSF variable names as Spring bean names. |