org.apache.shale.faces
Class ShaleVariableResolver

java.lang.Object
  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: ShaleVariableResolver.java 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

ShaleVariableResolver

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

Construct a new ShaleVariableResolver instance.

Parameters:
original - Original resolver to delegate to.
Method Detail

resolveVariable

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
Parameters:
context - FacesContext for the current request
name - Variable name to be resolved
Throws:
javax.faces.el.EvaluationException - if the JNDI naming context throws a naming exception


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