Class ShaleVariableResolver

  extended by javax.faces.el.VariableResolver
      extended by org.apache.shale.faces.ShaleVariableResolver

public class ShaleVariableResolver
extends javax.faces.el.VariableResolver

Shale-specific VariableResolver for evaluating JavaServer Faces value binding and method binding expressions. The following special variable names are recognized, and evaluated as indicated:

All other evaluations are delegated to the previous implementation that was passed to our constructor.

Since 1.0.1, if the optional shale-tiger.jar file (containing the Shale Tiger Extensions) is available to this web application, the extra variable resolver implementation found there will be interposed between this instance and the previous implementation instance passed to our constructor.

$Id: 464373 2006-10-16 04:21:54Z rahul $

Constructor Summary
ShaleVariableResolver(javax.faces.el.VariableResolver original)
          Construct a new ShaleVariableResolver instance.
Method Summary
 Object resolveVariable(javax.faces.context.FacesContext context, String name)
          Resolve variable names known to this resolver; otherwise, delegate to the original resolver passed to our constructor.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ShaleVariableResolver(javax.faces.el.VariableResolver original)

Construct a new ShaleVariableResolver instance.

original - Original resolver to delegate to.
Method Detail


public Object resolveVariable(javax.faces.context.FacesContext context,
                              String name)
                       throws javax.faces.el.EvaluationException

Resolve variable names known to this resolver; otherwise, delegate to the original resolver passed to our constructor.

Specified by:
resolveVariable in class javax.faces.el.VariableResolver
context - FacesContext for the current request
name - Variable name to be resolved
javax.faces.el.EvaluationException - if the JNDI naming context throws a naming exception

Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.