Class VariableResolverImpl

  extended by javax.faces.el.VariableResolver
      extended by org.apache.shale.tiger.faces.VariableResolverImpl

public class VariableResolverImpl
extends javax.faces.el.VariableResolver

Implementation of VariableResolver that delegates to the original handler under these circumstances:

If control is not delegated, implement the standard functionality for creating managed beans (this is necessary because JSF does not expose any direct API to access these capabilities), with the following additions:

FIXME - Incomplete implemetnation of standard managed beans functionality in the following areas:

IMPLEMENTATION NOTE - There is no faces-config.xml resource that registers this variable resolver, since we could end up with ordering issues with the standard Shale variable resolver. Therefore, the standard implementation will dynamically insert an instance of this resolver (below the standard instance, but above the implementation provided instance) in the standard decorator chain that is implemented as the JavaServer Faces runtime parses configuration resources.

Constructor Summary
VariableResolverImpl(javax.faces.el.VariableResolver original)
          Create a new VariableResolverImpl wrapping the specified VariableResolver.
Method Summary
 Object resolveVariable(javax.faces.context.FacesContext context, String name)
          Resolve the specified variable name, creating and initializing a new managed bean if necessary.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


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

Create a new VariableResolverImpl wrapping the specified VariableResolver.

original - Original VariableResolver to wrap
Method Detail


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

Resolve the specified variable name, creating and initializing a new managed bean if necessary.

Specified by:
resolveVariable in class javax.faces.el.VariableResolver
context - FacesContext used to resolve variables
name - Name of the variable to be resolved
javax.faces.el.EvaluationException - if an evaluation error occurs

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