public class ComponentTagHandlerDelegate extends TagHandlerDelegate
| 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.
 apply in class TagHandlerDelegateTagException - if the UIComponent parent is nullIOExceptionprotected final String getFacetName(FaceletContext ctx, UIComponent parent)
ctx - protected UIComponent createComponent(FaceletContext ctx)
If the binding was used, then set the ValueExpression "binding" on the created UIComponent.
See Application#createComponent(jakarta.faces.el.ValueBinding, jakarta.faces.context.FacesContext, java.lang.String) See Application#createComponent(java.lang.String)ctx - FaceletContext to use in creating a componentprotected String getId(FaceletContext ctx)
ctx - FaceletContext to usepublic MetaRuleset createMetaRuleset(Class type)
createMetaRuleset in class TagHandlerDelegateCopyright © 2021 The Apache Software Foundation. All rights reserved.