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. 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:
<application>
...
<variable-resolver>org.springframework.web.jsf.WebApplicationContextVariableResolver</variable-resolver>
</application>
author: Colin Sampaleanu author: Juergen Hoeller since: 1.2.5 See Also: DelegatingVariableResolver See Also: FacesContextUtils.getWebApplicationContext |