public class CompositeComponentResourceTagHandler extends ComponentHandler implements ComponentBuilderHandler, TemplateClient
| Modifier and Type | Field and Description |
|---|---|
protected Collection<FaceletHandler> |
_componentHandlers |
protected Collection<FaceletHandler> |
_facetHandlers |
protected Map<String,FaceletHandler> |
_facetHandlersMap |
static String |
CREATE_CC_ON_POST_ADD_TO_VIEW |
delegateFactorynextHandler, tag, tagId| Constructor and Description |
|---|
CompositeComponentResourceTagHandler(ComponentConfig config,
Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(FaceletContext ctx,
UIComponent parent,
String name)
This contract is much like the normal FaceletHandler.apply method, but it takes in an optional String name which
tells this instance what fragment/definition it's looking for.
|
protected void |
applyCompositeComponentFacelet(FaceletContext faceletContext,
UIComponent compositeComponentBase) |
protected void |
applyFinalInitializationSteps(FaceletContext ctx,
FaceletCompositionContext mctx,
UIComponent c) |
void |
applyNextHandler(FaceletContext ctx,
UIComponent c) |
protected void |
applyNextHandlerIfNotApplied(FaceletContext ctx,
UIComponent c) |
protected void |
applyNextHandlerIfNotAppliedDynamically(FaceletContext ctx,
UIComponent c) |
UIComponent |
createComponent(FaceletContext ctx) |
protected MetaRuleset |
createMetaRuleset(Class<?> type,
BeanInfo beanInfo) |
void |
setAttributes(FaceletContext ctx,
Object instance) |
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulatedapply, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabledgetAttribute, getRequiredAttribute, toStringpublic static final String CREATE_CC_ON_POST_ADD_TO_VIEW
protected volatile Map<String,FaceletHandler> _facetHandlersMap
protected final Collection<FaceletHandler> _componentHandlers
protected final Collection<FaceletHandler> _facetHandlers
public CompositeComponentResourceTagHandler(ComponentConfig config, Resource resource)
public UIComponent createComponent(FaceletContext ctx)
createComponent in interface ComponentBuilderHandlercreateComponent in class ComponentHandlerpublic void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException
applyNextHandler in class DelegatingMetaTagHandlerIOExceptionprotected void applyFinalInitializationSteps(FaceletContext ctx, FaceletCompositionContext mctx, UIComponent c)
protected void applyNextHandlerIfNotApplied(FaceletContext ctx, UIComponent c) throws IOException
IOExceptionprotected void applyCompositeComponentFacelet(FaceletContext faceletContext, UIComponent compositeComponentBase) throws IOException
IOExceptionpublic void setAttributes(FaceletContext ctx, Object instance)
setAttributes in class DelegatingMetaTagHandlerprotected MetaRuleset createMetaRuleset(Class<?> type, BeanInfo beanInfo)
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, jakarta.el.ELException
TemplateClientapply in interface TemplateClientctx - the FaceletContext of your instance, not the templates'parent - current UIComponent instance to be appliedname - the String name or null if the whole body should be includedIOExceptionFacesExceptionFaceletExceptionjakarta.el.ELExceptionprotected void applyNextHandlerIfNotAppliedDynamically(FaceletContext ctx, UIComponent c) throws IOException
IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.