public class CompositeComponentTagHandler extends 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.
delegateFactorynextHandler, tag, tagId| Constructor and Description |
|---|
CompositeComponentTagHandler(Resource ccResource,
ComponentConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyNextHandler(FaceletContext ctx,
UIComponent c)
Invoke the |
UIComponent |
createComponent(FaceletContext ctx)
Subclasses that wish to take over the task of instantiating the |
protected 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<AttachedObjectHandler> |
getAttachedObjectHandlers(UIComponent component) |
static List<AttachedObjectHandler> |
getAttachedObjectHandlers(UIComponent component,
boolean create) |
UIComponent |
getCompositeComponent(FacesContext context) |
void |
setAttributes(FaceletContext ctx,
Object instance)
Specialized implementation to prevent caching of the MetaRuleset when ProjectStage is Development.
|
void |
setCompositeComponent(FacesContext context,
UIComponent cc) |
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulatedapply, getBinding, getTag, getTagAttribute, getTagId, isDisabledgetAttribute, getRequiredAttribute, toStringpublic CompositeComponentTagHandler(Resource ccResource, ComponentConfig config)
public UIComponent createComponent(FaceletContext ctx)
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 ComponentHandlerctx - the FaceletContext for this view executionUIComponentpublic void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, jakarta.el.ELException
DelegatingMetaTagHandler
Invoke the apply() method on this instance's TagHandler.nextHandler.
applyNextHandler in class DelegatingMetaTagHandlerctx - the FaceletContext for this view executionc - the UIComponent of the component represented by this element instance.IOException - if thrown by the next FaceletHandlerFaceletException - if thrown by the next FaceletHandlerFacesException - if thrown by the next FaceletHandlerjakarta.el.ELException - if thrown by the next FaceletHandlerpublic void setCompositeComponent(FacesContext context, UIComponent cc)
public UIComponent getCompositeComponent(FacesContext context)
public void setAttributes(FaceletContext ctx, Object instance)
setAttributes in class DelegatingMetaTagHandlerctx - the Facelet context.instance - the instance.protected MetaRuleset createMetaRuleset(Class type)
createMetaRuleset in class DelegatingMetaTagHandlertype - the Class for which the MetaRuleset must be created.public static List<AttachedObjectHandler> getAttachedObjectHandlers(UIComponent component)
public static List<AttachedObjectHandler> getAttachedObjectHandlers(UIComponent component, boolean create)
Copyright © 1997–2020 Eclipse Foundation. All rights reserved.