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 |
delegateFactory
nextHandler, 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, onComponentPopulated
apply, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled
getAttribute, getRequiredAttribute, toString
public 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 ComponentBuilderHandler
createComponent
in class ComponentHandler
public void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException
applyNextHandler
in class DelegatingMetaTagHandler
IOException
protected void applyFinalInitializationSteps(FaceletContext ctx, FaceletCompositionContext mctx, UIComponent c)
protected void applyNextHandlerIfNotApplied(FaceletContext ctx, UIComponent c) throws IOException
IOException
protected void applyCompositeComponentFacelet(FaceletContext faceletContext, UIComponent compositeComponentBase) throws IOException
IOException
public void setAttributes(FaceletContext ctx, Object instance)
setAttributes
in class DelegatingMetaTagHandler
protected MetaRuleset createMetaRuleset(Class<?> type, BeanInfo beanInfo)
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, javax.el.ELException
TemplateClient
apply
in interface TemplateClient
ctx
- 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 includedIOException
FacesException
FaceletException
javax.el.ELException
protected void applyNextHandlerIfNotAppliedDynamically(FaceletContext ctx, UIComponent c) throws IOException
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.