|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.el.VariableResolver
org.springframework.web.jsf.DelegatingVariableResolver
org.alfresco.web.app.AlfrescoVariableResolver
public class AlfrescoVariableResolver
JSF VariableResolver that first delegates to the Spring JSF variable
resolver. The sole purpose of this variable resolver is to look out
for the 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
Field Summary | |
---|---|
protected java.util.List |
dialogContainers
|
protected java.util.List |
wizardContainers
|
Fields inherited from class org.springframework.web.jsf.DelegatingVariableResolver |
---|
originalVariableResolver |
Constructor Summary | |
---|---|
AlfrescoVariableResolver(javax.faces.el.VariableResolver originalVariableResolver)
Creates a new VariableResolver. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.web.jsf.DelegatingVariableResolver |
---|
getBeanFactory, getOriginalVariableResolver, getWebApplicationContext, resolveOriginal, resolveSpringBean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List dialogContainers
protected java.util.List wizardContainers
Constructor Detail |
---|
public AlfrescoVariableResolver(javax.faces.el.VariableResolver originalVariableResolver)
originalVariableResolver
- The original variable resolverMethod Detail |
---|
public 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.DelegatingVariableResolver
context
- FacesContextname
- The name of the variable to resolve
javax.faces.el.EvaluationException
protected java.util.List getDialogContainers(javax.faces.context.FacesContext context)
context
- FacesContext
protected java.util.List getWizardContainers(javax.faces.context.FacesContext context)
context
- FacesContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |