| org.springframework.web.jsf.el.WebApplicationContextFacesELResolver
WebApplicationContextFacesELResolver | public class WebApplicationContextFacesELResolver extends ELResolver (Code) | | Special JSF 1.2 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: SpringBeanFacesELResolver See Also: org.springframework.web.jsf.FacesContextUtils.getWebApplicationContext |
Method Summary | |
public Class> | getCommonPropertyType(ELContext elContext, Object base) | public Iterator<FeatureDescriptor> | getFeatureDescriptors(ELContext elContext, Object base) | public Class> | getType(ELContext elContext, Object base, Object property) | public Object | getValue(ELContext elContext, Object base, Object property) | protected WebApplicationContext | getWebApplicationContext(ELContext elContext) Retrieve the WebApplicationContext reference to expose. | public boolean | isReadOnly(ELContext elContext, Object base, Object property) | public void | setValue(ELContext elContext, Object base, Object property, Object value) |
WEB_APPLICATION_CONTEXT_VARIABLE_NAME | final public static String WEB_APPLICATION_CONTEXT_VARIABLE_NAME(Code) | | Name of the exposed WebApplicationContext variable: "webApplicationContext".
|
logger | final protected Log logger(Code) | | Logger available to subclasses
|
getCommonPropertyType | public Class> getCommonPropertyType(ELContext elContext, Object base)(Code) | | |
isReadOnly | public boolean isReadOnly(ELContext elContext, Object base, Object property) throws ELException(Code) | | |
|
|