public class CompositeComponentTagHandler
extends javax.faces.view.facelets.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.
Constructor and Description |
---|
CompositeComponentTagHandler(javax.faces.application.Resource ccResource,
javax.faces.view.facelets.ComponentConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
applyNextHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent c)
Invoke the |
javax.faces.component.UIComponent |
createComponent(javax.faces.view.facelets.FaceletContext ctx)
Subclasses that wish to take over
the task of instantiating the |
protected javax.faces.view.facelets.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<javax.faces.view.AttachedObjectHandler> |
getAttachedObjectHandlers(javax.faces.component.UIComponent component) |
static List<javax.faces.view.AttachedObjectHandler> |
getAttachedObjectHandlers(javax.faces.component.UIComponent component,
boolean create) |
javax.faces.component.UIComponent |
getCompositeComponent(javax.faces.context.FacesContext context) |
void |
setAttributes(javax.faces.view.facelets.FaceletContext ctx,
Object instance)
Specialized implementation to prevent caching of the MetaRuleset when
ProjectStage is Development.
|
void |
setCompositeComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent cc) |
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulated
apply, getBinding, getTag, getTagAttribute, getTagId, isDisabled
public CompositeComponentTagHandler(javax.faces.application.Resource ccResource, javax.faces.view.facelets.ComponentConfig config)
public javax.faces.component.UIComponent createComponent(javax.faces.view.facelets.FaceletContext ctx)
javax.faces.view.facelets.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 javax.faces.view.facelets.ComponentHandler
ctx
- the FaceletContext
for this view executionUIComponent
public void applyNextHandler(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent c) throws IOException, javax.faces.FacesException, javax.el.ELException
javax.faces.view.facelets.DelegatingMetaTagHandler
Invoke the apply()
method on this instance's TagHandler.nextHandler
.
applyNextHandler
in class javax.faces.view.facelets.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
javax.faces.view.facelets.FaceletException
- if thrown by the next FaceletHandler
javax.faces.FacesException
- if thrown by the next FaceletHandler
javax.el.ELException
- if thrown by the next FaceletHandler
public void setCompositeComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent cc)
public javax.faces.component.UIComponent getCompositeComponent(javax.faces.context.FacesContext context)
public void setAttributes(javax.faces.view.facelets.FaceletContext ctx, Object instance)
setAttributes
in class javax.faces.view.facelets.DelegatingMetaTagHandler
ctx
- the Facelet context.instance
- the instance.protected javax.faces.view.facelets.MetaRuleset createMetaRuleset(Class type)
createMetaRuleset
in class javax.faces.view.facelets.DelegatingMetaTagHandler
type
- the Class
for which the
MetaRuleset
must be created.public static List<javax.faces.view.AttachedObjectHandler> getAttachedObjectHandlers(javax.faces.component.UIComponent component)
public static List<javax.faces.view.AttachedObjectHandler> getAttachedObjectHandlers(javax.faces.component.UIComponent component, boolean create)
Copyright © 2010–2021 JBoss by Red Hat. All rights reserved.