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 StringFields inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
delegateFactoryFields inherited from class jakarta.faces.view.facelets.TagHandler
nextHandler, tag, tagId -
Constructor Summary
ConstructorsConstructorDescriptionCompositeComponentResourceTagHandler(ComponentConfig config, Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(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 voidapplyCompositeComponentFacelet(FaceletContext faceletContext, UIComponent compositeComponentBase) protected voidvoidprotected voidprotected voidprotected MetaRulesetcreateMetaRuleset(Class<?> type, BeanInfo beanInfo) voidsetAttributes(FaceletContext ctx, Object instance) Methods inherited from class jakarta.faces.view.facelets.ComponentHandler
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulatedMethods inherited from class jakarta.faces.view.facelets.DelegatingMetaTagHandler
apply, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabledMethods 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:
createComponentin interfaceComponentBuilderHandler- Overrides:
createComponentin classComponentHandler
-
applyNextHandler
- Overrides:
applyNextHandlerin 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:
setAttributesin classDelegatingMetaTagHandler
-
createMetaRuleset
-
apply
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, jakarta.el.ELException Description copied from interface:TemplateClientThis 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:
applyin 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:
IOExceptionFacesExceptionFaceletExceptionjakarta.el.ELException
-
applyNextHandlerIfNotAppliedDynamically
protected void applyNextHandlerIfNotAppliedDynamically(FaceletContext ctx, UIComponent c) throws IOException - Throws:
IOException
-