public class AlfrescoVariableResolver
extends org.springframework.web.jsf.DelegatingVariableResolver
Container variable. If this variable is encountered
the current viewId is examined. If the current viewId matches a
configured dialog or wizard container the appropriate manager object is
returned i.e. DialogManager or WizardManager.
Configure this resolver in your faces-config.xml file as follows:
<application> ... <variable-resolver>org.alfresco.web.app.AlfrescoVariableResolver</variable-resolver> </application>
DialogManager,
WizardManager| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
dialogContainers |
protected java.util.List |
wizardContainers |
| Constructor and Description |
|---|
AlfrescoVariableResolver(javax.faces.el.VariableResolver originalVariableResolver)
Creates a new VariableResolver.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
getDialogContainers(javax.faces.context.FacesContext context)
Retrieves the list of configured dialog container pages
|
protected java.util.List |
getWizardContainers(javax.faces.context.FacesContext context)
Retrieves the list of configured wizard container pages
|
java.lang.Object |
resolveVariable(javax.faces.context.FacesContext context,
java.lang.String name)
Resolves the variable with the given name.
|
protected java.util.List dialogContainers
protected java.util.List wizardContainers
public AlfrescoVariableResolver(javax.faces.el.VariableResolver originalVariableResolver)
originalVariableResolver - The original variable resolverpublic java.lang.Object resolveVariable(javax.faces.context.FacesContext context,
java.lang.String name)
throws javax.faces.el.EvaluationException
This implementation will first delegate to the Spring variable resolver.
If the variable is not found by the Spring resolver and the variable name
is Container the current viewId is examined.
If the current viewId matches a configured dialog or wizard container
the appropriate manager object is returned i.e. DialogManager or WizardManager.
resolveVariable in class org.springframework.web.jsf.DelegatingVariableResolvercontext - FacesContextname - The name of the variable to resolvejavax.faces.el.EvaluationExceptionprotected java.util.List getDialogContainers(javax.faces.context.FacesContext context)
context - FacesContextprotected java.util.List getWizardContainers(javax.faces.context.FacesContext context)
context - FacesContextCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.