Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ui.web.binding.alias
Class AliasVariableMapper

java.lang.Object
  extended by javax.el.VariableMapper
      extended by 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

Field Summary
static String REQUEST_MARKER
           
 
Constructor Summary
AliasVariableMapper()
           
AliasVariableMapper(String id)
           
 
Method Summary
static void exposeAliasesToRequest(FacesContext facesContext, AliasVariableMapper vm)
           
 String getId()
           
static AliasVariableMapper getVariableMapper(FacesContext facesContext, String id)
           
 VariableMapper getVariableMapperForBuild(VariableMapper orig)
           
 Map<String,ValueExpression> getVariables()
           
static void removeAliasesExposedToRequest(FacesContext facesContext, String id)
           
 ValueExpression resolveVariable(String variable)
           
 void setId(String id)
           
 ValueExpression setVariable(String variable, ValueExpression expression)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_MARKER

public static final String REQUEST_MARKER
Constructor Detail

AliasVariableMapper

public AliasVariableMapper()

AliasVariableMapper

public AliasVariableMapper(String id)
Method Detail

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)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.