public class CompositeComponentTagHandler
extends jakarta.faces.view.facelets.ComponentHandler
Facelet handler responsible for, building the component tree representation of a composite component based on the metadata contained in the composite interface and implementation sections of the composite component template.
| Constructor and Description |
|---|
CompositeComponentTagHandler(jakarta.faces.application.Resource ccResource,
jakarta.faces.view.facelets.ComponentConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyNextHandler(jakarta.faces.view.facelets.FaceletContext ctx,
jakarta.faces.component.UIComponent c)
Invoke the |
jakarta.faces.component.UIComponent |
createComponent(jakarta.faces.view.facelets.FaceletContext ctx)
Subclasses that wish to take over the task of instantiating the |
protected jakarta.faces.view.facelets.MetaRuleset |
createMetaRuleset(Class type)
This is basically a copy of what's define in ComponentTagHandlerDelegateImpl except for the MetaRuleset
implementation that's being used.
|
static List<jakarta.faces.view.AttachedObjectHandler> |
getAttachedObjectHandlers(jakarta.faces.component.UIComponent component) |
static List<jakarta.faces.view.AttachedObjectHandler> |
getAttachedObjectHandlers(jakarta.faces.component.UIComponent component,
boolean create) |
jakarta.faces.component.UIComponent |
getCompositeComponent(jakarta.faces.context.FacesContext context) |
void |
setAttributes(jakarta.faces.view.facelets.FaceletContext ctx,
Object instance)
Specialized implementation to prevent caching of the MetaRuleset when ProjectStage is Development.
|
void |
setCompositeComponent(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent cc) |
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulatedapply, getBinding, getTag, getTagAttribute, getTagId, isDisabledpublic CompositeComponentTagHandler(jakarta.faces.application.Resource ccResource,
jakarta.faces.view.facelets.ComponentConfig config)
public jakarta.faces.component.UIComponent createComponent(jakarta.faces.view.facelets.FaceletContext ctx)
jakarta.faces.view.facelets.ComponentHandler
Subclasses that wish to take over the task of instantiating the UIComponent instance corresponding to
this tag handler my override this method to do so. A null return from this method will cause the
TagHandlerDelegate for instance to create the component instead.
createComponent in class jakarta.faces.view.facelets.ComponentHandlerctx - the FaceletContext for this view executionUIComponentpublic void applyNextHandler(jakarta.faces.view.facelets.FaceletContext ctx,
jakarta.faces.component.UIComponent c)
throws IOException,
jakarta.faces.FacesException,
jakarta.el.ELException
jakarta.faces.view.facelets.DelegatingMetaTagHandler
Invoke the apply() method on this instance's TagHandler.nextHandler.
applyNextHandler in class jakarta.faces.view.facelets.DelegatingMetaTagHandlerctx - the FaceletContext for this view executionc - the UIComponent of the component represented by this element instance.IOException - if thrown by the next FaceletHandlerjakarta.faces.view.facelets.FaceletException - if thrown by the next FaceletHandlerjakarta.faces.FacesException - if thrown by the next FaceletHandlerjakarta.el.ELException - if thrown by the next FaceletHandlerpublic void setCompositeComponent(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent cc)
public jakarta.faces.component.UIComponent getCompositeComponent(jakarta.faces.context.FacesContext context)
public void setAttributes(jakarta.faces.view.facelets.FaceletContext ctx,
Object instance)
setAttributes in class jakarta.faces.view.facelets.DelegatingMetaTagHandlerctx - the Facelet context.instance - the instance.protected jakarta.faces.view.facelets.MetaRuleset createMetaRuleset(Class type)
createMetaRuleset in class jakarta.faces.view.facelets.DelegatingMetaTagHandlertype - the Class for which the MetaRuleset must be created.public static List<jakarta.faces.view.AttachedObjectHandler> getAttachedObjectHandlers(jakarta.faces.component.UIComponent component)
public static List<jakarta.faces.view.AttachedObjectHandler> getAttachedObjectHandlers(jakarta.faces.component.UIComponent component, boolean create)
Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.