public
classWebApplicationContextVariableResolver
extends VariableResolver
Overview
Inheritance
Members
Usage
Source
Books
Since1.2.5
VersionNot specified.
Author(s)Colin Sampaleanu, Juergen Hoeller
Special 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. It rather
exposes Spring's root WebApplicationContext itself under a special name.
JSF-managed beans can then use Spring's WebApplicationContext API to retrieve
Spring-managed beans, access resources, etc.
Configure this resolver in your faces-config.xml file as follows:
VariableResolverthat exposes the SpringWebApplicationContextinstance under a variable named "webApplicationContext".In contrast to DelegatingVariableResolver, this VariableResolver does not resolve JSF variable names as Spring bean names. It rather exposes Spring's root WebApplicationContext itself under a special name. JSF-managed beans can then use Spring's WebApplicationContext API to retrieve Spring-managed beans, access resources, etc.
Configure this resolver in your
faces-config.xmlfile as follows: