org.nuxeo.ecm.platform.ui.web.binding.alias
Class AliasTagHandler
java.lang.Object
com.sun.facelets.tag.TagHandler
com.sun.facelets.tag.MetaTagHandler
org.nuxeo.ecm.platform.ui.web.binding.alias.AliasTagHandler
- All Implemented Interfaces:
- com.sun.facelets.FaceletHandler
- Direct Known Subclasses:
- SetTagHandler
public class AliasTagHandler
- extends com.sun.facelets.tag.MetaTagHandler
Tag handler that exposes variables to the variable map. Behaviour is close
to the c:set tag handler except:
- It handles several variables
- It allows caching a variable using cache parameter: variable will be
resolved the first time is is called and will be put in the context after
- The resolved variable is removed from context when tag is closed to
avoid filling the context with it
- Variables are made available in the request context after the JSF
component tree build thanks to a backing component.
The backing component value expressions are changed even if the component
was found to ensure a good resolution even when re-rendering the tag using
ajax.
- Since:
- 5.4
- Author:
- Anahide Tchertchian
Constructor Summary |
AliasTagHandler(com.sun.facelets.tag.TagConfig config,
java.util.Map<java.lang.String,javax.el.ValueExpression> variables)
|
Method Summary |
void |
apply(com.sun.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
|
void |
apply(com.sun.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
AliasVariableMapper alias)
|
Methods inherited from class com.sun.facelets.tag.TagHandler |
toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AliasTagHandler
public AliasTagHandler(com.sun.facelets.tag.TagConfig config,
java.util.Map<java.lang.String,javax.el.ValueExpression> variables)
apply
public void apply(com.sun.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
throws java.io.IOException,
javax.faces.FacesException,
com.sun.facelets.FaceletException,
javax.el.ELException
- Throws:
java.io.IOException
javax.faces.FacesException
com.sun.facelets.FaceletException
javax.el.ELException
apply
public void apply(com.sun.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
AliasVariableMapper alias)
throws java.io.IOException,
javax.faces.FacesException,
com.sun.facelets.FaceletException,
javax.el.ELException
- Throws:
java.io.IOException
javax.faces.FacesException
com.sun.facelets.FaceletException
javax.el.ELException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.