Class CompositeComponentResourceTagHandler
java.lang.Object
jakarta.faces.view.facelets.TagHandler
jakarta.faces.view.facelets.MetaTagHandler
jakarta.faces.view.facelets.DelegatingMetaTagHandler
jakarta.faces.view.facelets.ComponentHandler
org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler
- All Implemented Interfaces:
FaceletHandler
,ComponentBuilderHandler
,TemplateClient
public class CompositeComponentResourceTagHandler
extends ComponentHandler
implements ComponentBuilderHandler, TemplateClient
This handler is responsible for apply composite components. It
is created by CompositeResourceLibrary class when a composite component
is found.
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ArrayList<FaceletHandler>
protected final ArrayList<FaceletHandler>
protected Map<String,
FaceletHandler> static final String
Fields inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
Fields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeComponentResourceTagHandler
(ComponentConfig config, Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
void
protected void
protected void
protected MetaRuleset
createMetaRuleset
(Class<?> type, BeanInfo beanInfo) void
setAttributes
(FaceletContext ctx, Object instance) Methods inherited from class jakarta.faces.view.facelets.ComponentHandler
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulated
Methods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
apply, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled
Methods inherited from class jakarta.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
Field Details
-
CREATE_CC_ON_POST_ADD_TO_VIEW
- See Also:
-
_facetHandlersMap
-
_componentHandlers
-
_facetHandlers
-
-
Constructor Details
-
CompositeComponentResourceTagHandler
-
-
Method Details
-
createComponent
- Specified by:
createComponent
in interfaceComponentBuilderHandler
- Overrides:
createComponent
in classComponentHandler
-
applyNextHandler
- Overrides:
applyNextHandler
in classDelegatingMetaTagHandler
- Throws:
IOException
-
applyFinalInitializationSteps
protected void applyFinalInitializationSteps(FaceletContext ctx, FaceletCompositionContext mctx, UIComponent c) -
applyNextHandlerIfNotApplied
- Throws:
IOException
-
applyCompositeComponentFacelet
protected void applyCompositeComponentFacelet(FaceletContext faceletContext, UIComponent compositeComponentBase) throws IOException - Throws:
IOException
-
setAttributes
- Overrides:
setAttributes
in classDelegatingMetaTagHandler
-
createMetaRuleset
-
apply
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, jakarta.el.ELException Description copied from interface:TemplateClient
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. If you are a match, apply your logic to the passed UIComponent and return true, otherwise do nothing and return false.- Specified by:
apply
in interfaceTemplateClient
- Parameters:
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 included- Returns:
- true if this client matched/applied the definition for the passed name
- Throws:
IOException
FacesException
FaceletException
jakarta.el.ELException
-
applyNextHandlerIfNotAppliedDynamically
protected void applyNextHandlerIfNotAppliedDynamically(FaceletContext ctx, UIComponent c) throws IOException - Throws:
IOException
-