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, onComponentPopulatedapply, getBinding, getTag, getTagAttribute, getTagId, isDisabledpublic 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.ComponentHandlerSubclasses 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.ComponentHandlerctx - the FaceletContext for this view executionUIComponentpublic 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.DelegatingMetaTagHandlerInvoke the apply()
method on this instance's TagHandler.nextHandler.
applyNextHandler in class javax.faces.view.facelets.DelegatingMetaTagHandlerctx - the FaceletContext for this view executionc - the UIComponent of the
component represented by this element instance.IOException - if thrown by the next FaceletHandlerjavax.faces.view.facelets.FaceletException - if thrown by the next FaceletHandlerjavax.faces.FacesException - if thrown by the next FaceletHandlerjavax.el.ELException - if thrown by the next FaceletHandlerpublic 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.DelegatingMetaTagHandlerctx - the Facelet context.instance - the instance.protected javax.faces.view.facelets.MetaRuleset createMetaRuleset(Class type)
createMetaRuleset in class javax.faces.view.facelets.DelegatingMetaTagHandlertype - 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–2019 JBoss by Red Hat. All rights reserved.