public class ValueHolderTagHandler extends GenericHtmlComponentHandler
UIValueHolder
component, that exposes the value kept by the component at build time for
children components.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
protected javax.faces.view.facelets.TagAttribute |
skip |
protected javax.faces.view.facelets.TagAttribute |
var |
Constructor and Description |
---|
ValueHolderTagHandler(javax.faces.view.facelets.ComponentConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent) |
void |
applyNextHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent c) |
protected Object |
retrieveValueToExpose(javax.faces.view.facelets.FaceletContext context,
javax.faces.component.UIComponent comp)
Returns the value to expose at build time for this tag handler.
|
onComponentCreated
createMetaRuleset
createComponent, getComponentConfig, getTagHandlerDelegate, isNew, onComponentPopulated
getBinding, getTag, getTagAttribute, getTagId, isDisabled, setAttributes
protected final org.apache.commons.logging.Log log
protected final javax.faces.view.facelets.TagAttribute var
protected final javax.faces.view.facelets.TagAttribute skip
public ValueHolderTagHandler(javax.faces.view.facelets.ComponentConfig config)
public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent) throws IOException
apply
in interface javax.faces.view.facelets.FaceletHandler
apply
in class javax.faces.view.facelets.DelegatingMetaTagHandler
IOException
public void applyNextHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent c) throws IOException, javax.faces.FacesException, javax.el.ELException
applyNextHandler
in class javax.faces.view.facelets.DelegatingMetaTagHandler
IOException
javax.faces.FacesException
javax.el.ELException
protected Object retrieveValueToExpose(javax.faces.view.facelets.FaceletContext context, javax.faces.component.UIComponent comp)
Value can be retrieved directly from component in most of cases, but should be retrieved from view-scoped managed bean when the restore phase is called (as component has not been restored yet, so its value is not available to be exposed in the tree view being built).
Copyright © 2016 Nuxeo SA. All rights reserved.