org.nuxeo.ecm.platform.ui.web.binding.alias
Class AliasVariableMapper
java.lang.Object
javax.el.VariableMapper
org.nuxeo.ecm.platform.ui.web.binding.alias.AliasVariableMapper
public class AliasVariableMapper
- extends VariableMapper
Variable mapper that holds value expressions. It can be exposed to the
request context after the JSF component tree build, so that
AliasValueExpression
instances can be resolved.
It also builds the VariableMapper
to use when building the component
tree, so that AliasValueExpression
instances are kept in component
attributes, even on ajax rerender.
- Since:
- 5.4
- Author:
- Anahide Tchertchian
REQUEST_MARKER
public static final String REQUEST_MARKER
AliasVariableMapper
public AliasVariableMapper()
AliasVariableMapper
public AliasVariableMapper(String id)
getId
public String getId()
setId
public void setId(String id)
resolveVariable
public ValueExpression resolveVariable(String variable)
- Specified by:
resolveVariable
in class VariableMapper
setVariable
public ValueExpression setVariable(String variable,
ValueExpression expression)
- Specified by:
setVariable
in class VariableMapper
getVariableMapperForBuild
public VariableMapper getVariableMapperForBuild(VariableMapper orig)
getVariables
public Map<String,ValueExpression> getVariables()
getVariableMapper
public static AliasVariableMapper getVariableMapper(FacesContext facesContext,
String id)
exposeAliasesToRequest
public static void exposeAliasesToRequest(FacesContext facesContext,
AliasVariableMapper vm)
removeAliasesExposedToRequest
public static void removeAliasesExposedToRequest(FacesContext facesContext,
String id)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.