public class ComponentTagHandlerDelegate extends TagHandlerDelegate
ComponentHandler| Constructor and Description |
|---|
ComponentTagHandlerDelegate(ComponentHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(FaceletContext ctx,
UIComponent parent)
Method handles UIComponent tree creation in accordance with the JSF 1.2 spec.
|
protected UIComponent |
createComponent(FaceletContext ctx)
If the binding attribute was specified, use that in conjuction with our componentType String variable to call
createComponent on the Application, otherwise just pass the componentType String.
|
MetaRuleset |
createMetaRuleset(Class type) |
protected String |
getFacetName(FaceletContext ctx,
UIComponent parent)
Return the Facet name we are scoped in, otherwise null
|
protected String |
getId(FaceletContext ctx)
If the id TagAttribute was specified, get it's value, otherwise generate a unique id from our tagId.
|
public ComponentTagHandlerDelegate(ComponentHandler delegate)
public void apply(FaceletContext ctx, UIComponent parent) throws IOException
getId(FaceletContext).mark its children for deletion.createComponent.
attributesfinalize
for deletion.apply in class TagHandlerDelegateTagException - if the UIComponent parent is nullIOExceptionFaceletHandler.apply(javax.faces.view.facelets.FaceletContext,
javax.faces.component.UIComponent)protected final String getFacetName(FaceletContext ctx, UIComponent parent)
ctx - protected UIComponent createComponent(FaceletContext ctx)
ctx - FaceletContext to use in creating a componentApplication.createComponent(javax.faces.el.ValueBinding, javax.faces.context.FacesContext, java.lang.String),
Application.createComponent(java.lang.String)protected String getId(FaceletContext ctx)
ctx - FaceletContext to useTagAttribute.getValue(FaceletContext)public MetaRuleset createMetaRuleset(Class type)
createMetaRuleset in class TagHandlerDelegateCopyright © 2016 The Apache Software Foundation. All Rights Reserved.