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 List<String> |
dialogContainers |
protected List<String> |
wizardContainers |
Constructor and Description |
---|
AlfrescoVariableResolver(VariableResolver originalVariableResolver)
Creates a new VariableResolver.
|
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getDialogContainers(FacesContext context)
Retrieves the list of configured dialog container pages
|
protected List<String> |
getWizardContainers(FacesContext context)
Retrieves the list of configured wizard container pages
|
Object |
resolveVariable(FacesContext context,
String name)
Resolves the variable with the given name.
|
public AlfrescoVariableResolver(VariableResolver originalVariableResolver)
originalVariableResolver
- The original variable resolverpublic Object resolveVariable(FacesContext context, String name) throws 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.DelegatingVariableResolver
context
- FacesContextname
- The name of the variable to resolveEvaluationException
protected List<String> getDialogContainers(FacesContext context)
context
- FacesContextprotected List<String> getWizardContainers(FacesContext context)
context
- FacesContextCopyright © 2005–2017 Alfresco Software. All rights reserved.