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.
delegateFactory
nextHandler, 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, onComponentPopulated
apply, getBinding, getTag, getTagAttribute, getTagId, isDisabled
getAttribute, getRequiredAttribute, toString
public 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 ComponentHandler
ctx
- the FaceletContext
for this view executionUIComponent
public void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, javax.el.ELException
DelegatingMetaTagHandler
Invoke the apply()
method on this instance's TagHandler.nextHandler
.
applyNextHandler
in class DelegatingMetaTagHandler
ctx
- the FaceletContext
for this view executionc
- the UIComponent
of the
component represented by this element instance.IOException
- if thrown by the next FaceletHandler
FaceletException
- if thrown by the next FaceletHandler
FacesException
- if thrown by the next FaceletHandler
javax.el.ELException
- if thrown by the next FaceletHandler
public void setCompositeComponent(FacesContext context, UIComponent cc)
public UIComponent getCompositeComponent(FacesContext context)
public void setAttributes(FaceletContext ctx, Object instance)
setAttributes
in class DelegatingMetaTagHandler
ctx
- the Facelet context.instance
- the instance.protected MetaRuleset createMetaRuleset(Class type)
createMetaRuleset
in class DelegatingMetaTagHandler
type
- 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)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.