spring-framework / org.springframework.web.jsf.el / WebApplicationContextFacesELResolver

WebApplicationContextFacesELResolver

open class WebApplicationContextFacesELResolver : ELResolver

Special JSF ELResolver that exposes the Spring WebApplicationContext instance under a variable named "webApplicationContext".

In contrast to SpringBeanFacesELResolver, this ELResolver variant does not resolve JSF variable names as Spring bean names. It rather exposes Spring's root WebApplicationContext itself under a special name, and is able to resolve "webApplicationContext.mySpringManagedBusinessObject" dereferences to Spring-defined beans in that application context.

Configure this resolver in your faces-config.xml file as follows:

 <application> ... <el-resolver>org.springframework.web.jsf.el.WebApplicationContextFacesELResolver</el-resolver> </application>

Author
Juergen Hoeller

Since
2.5

See Also
SpringBeanFacesELResolverorg.springframework.web.jsf.FacesContextUtils#getWebApplicationContext

Constructors

<init>

WebApplicationContextFacesELResolver()

Special JSF ELResolver that exposes the Spring WebApplicationContext instance under a variable named "webApplicationContext".

In contrast to SpringBeanFacesELResolver, this ELResolver variant does not resolve JSF variable names as Spring bean names. It rather exposes Spring's root WebApplicationContext itself under a special name, and is able to resolve "webApplicationContext.mySpringManagedBusinessObject" dereferences to Spring-defined beans in that application context.

Configure this resolver in your faces-config.xml file as follows:

 <application> ... <el-resolver>org.springframework.web.jsf.el.WebApplicationContextFacesELResolver</el-resolver> </application>

Properties

WEB_APPLICATION_CONTEXT_VARIABLE_NAME

static val WEB_APPLICATION_CONTEXT_VARIABLE_NAME: String

Name of the exposed WebApplicationContext variable: "webApplicationContext".

Functions

getCommonPropertyType

open fun getCommonPropertyType(elContext: ELContext, base: Any): Class<*>

getFeatureDescriptors

open fun getFeatureDescriptors(elContext: ELContext, base: Any): MutableIterator<FeatureDescriptor>

getType

open fun getType(elContext: ELContext, base: Any, property: Any): Class<*>

getValue

open fun getValue(elContext: ELContext, base: Any, property: Any): Any

isReadOnly

open fun isReadOnly(elContext: ELContext, base: Any, property: Any): Boolean

setValue

open fun setValue(elContext: ELContext, base: Any, property: Any, value: Any): Unit