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 javax.el.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 java.lang.String REQUEST_MARKER
           
 
Constructor Summary
AliasVariableMapper()
           
AliasVariableMapper(java.lang.String id)
           
 
Method Summary
static void exposeAliasesToRequest(javax.faces.context.FacesContext facesContext, AliasVariableMapper vm)
           
 java.lang.String getId()
           
static AliasVariableMapper getVariableMapper(javax.faces.context.FacesContext facesContext, java.lang.String id)
           
 javax.el.VariableMapper getVariableMapperForBuild(javax.el.VariableMapper orig)
           
 java.util.Map<java.lang.String,javax.el.ValueExpression> getVariables()
           
static void removeAliasesExposedToRequest(javax.faces.context.FacesContext facesContext, java.lang.String id)
           
 javax.el.ValueExpression resolveVariable(java.lang.String variable)
           
 void setId(java.lang.String id)
           
 javax.el.ValueExpression setVariable(java.lang.String variable, javax.el.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 java.lang.String REQUEST_MARKER
Constructor Detail

AliasVariableMapper

public AliasVariableMapper()

AliasVariableMapper

public AliasVariableMapper(java.lang.String id)
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

resolveVariable

public javax.el.ValueExpression resolveVariable(java.lang.String variable)
Specified by:
resolveVariable in class javax.el.VariableMapper

setVariable

public javax.el.ValueExpression setVariable(java.lang.String variable,
                                            javax.el.ValueExpression expression)
Specified by:
setVariable in class javax.el.VariableMapper

getVariableMapperForBuild

public javax.el.VariableMapper getVariableMapperForBuild(javax.el.VariableMapper orig)

getVariables

public java.util.Map<java.lang.String,javax.el.ValueExpression> getVariables()

getVariableMapper

public static AliasVariableMapper getVariableMapper(javax.faces.context.FacesContext facesContext,
                                                    java.lang.String id)

exposeAliasesToRequest

public static void exposeAliasesToRequest(javax.faces.context.FacesContext facesContext,
                                          AliasVariableMapper vm)

removeAliasesExposedToRequest

public static void removeAliasesExposedToRequest(javax.faces.context.FacesContext facesContext,
                                                 java.lang.String id)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.