|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.el.VariableResolver org.apache.shale.tiger.faces.VariableResolverImpl
public class VariableResolverImpl
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:
Bean
annotation, the type and scope properties
will have been preconfigured from the corresponding
attribute values. (These default settings can be
overridden by specifying an actual managed bean element
in a faces-config.xml
resource.)Value
annotation, the property initialization
will be preconfigured to the literal or expression
specified by the value
attribute of the
annotation. (These default settings can be overridden
by specifiying an actual managed bean element, and
including a property definition that sets the value.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 wrapMethod 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.
resolveVariable
in class javax.faces.el.VariableResolver
context
- FacesContext
used to resolve variablesname
- Name of the variable to be resolved
javax.faces.el.EvaluationException
- if an evaluation error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |