org.apache.myfaces.view.facelets.tag.composite
Class CompositeComponentResourceTagHandler
java.lang.Object
javax.faces.view.facelets.TagHandler
javax.faces.view.facelets.MetaTagHandler
javax.faces.view.facelets.DelegatingMetaTagHandler
javax.faces.view.facelets.ComponentHandler
org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler
- All Implemented Interfaces:
- javax.faces.view.facelets.FaceletHandler, ComponentBuilderHandler, TemplateClient
public class CompositeComponentResourceTagHandler
- extends javax.faces.view.facelets.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: 964310 $ $Date: 2010-07-15 01:17:19 -0500 (Thu, 15 Jul 2010) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Field Summary |
protected java.util.Collection<javax.faces.view.facelets.FaceletHandler> |
_componentHandlers
|
protected java.util.Collection<javax.faces.view.facelets.FaceletHandler> |
_facetHandlers
|
protected java.util.Map<java.lang.String,javax.faces.view.facelets.FaceletHandler> |
_facetHandlersMap
|
Fields inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler |
delegateFactory |
Fields inherited from class javax.faces.view.facelets.TagHandler |
nextHandler, tag, tagId |
Method Summary |
boolean |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
java.lang.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(javax.faces.view.facelets.FaceletContext faceletContext,
javax.faces.component.UIComponent compositeComponentBase)
|
void |
applyNextHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent c)
|
protected void |
applyNextHandlerIfNotApplied(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent c)
|
javax.faces.component.UIComponent |
createComponent(javax.faces.view.facelets.FaceletContext ctx)
|
protected javax.faces.view.facelets.MetaRuleset |
createMetaRuleset(java.lang.Class<?> type,
java.beans.BeanInfo beanInfo)
|
void |
setAttributes(javax.faces.view.facelets.FaceletContext ctx,
java.lang.Object instance)
|
Methods inherited from class javax.faces.view.facelets.ComponentHandler |
getComponentConfig, getTagHandlerDelegate, isNew, onComponentCreated, onComponentPopulated |
Methods inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler |
apply, createMetaRuleset, getBinding, getTag, getTagAttribute, getTagId, isDisabled |
Methods inherited from class javax.faces.view.facelets.TagHandler |
getAttribute, getRequiredAttribute, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_facetHandlersMap
protected volatile java.util.Map<java.lang.String,javax.faces.view.facelets.FaceletHandler> _facetHandlersMap
_componentHandlers
protected final java.util.Collection<javax.faces.view.facelets.FaceletHandler> _componentHandlers
_facetHandlers
protected final java.util.Collection<javax.faces.view.facelets.FaceletHandler> _facetHandlers
CompositeComponentResourceTagHandler
public CompositeComponentResourceTagHandler(javax.faces.view.facelets.ComponentConfig config,
javax.faces.application.Resource resource)
createComponent
public javax.faces.component.UIComponent createComponent(javax.faces.view.facelets.FaceletContext ctx)
- Specified by:
createComponent
in interface ComponentBuilderHandler
applyNextHandler
public void applyNextHandler(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent c)
throws java.io.IOException
- Overrides:
applyNextHandler
in class javax.faces.view.facelets.DelegatingMetaTagHandler
- Throws:
java.io.IOException
applyNextHandlerIfNotApplied
protected void applyNextHandlerIfNotApplied(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent c)
throws java.io.IOException
- Throws:
java.io.IOException
applyCompositeComponentFacelet
protected void applyCompositeComponentFacelet(javax.faces.view.facelets.FaceletContext faceletContext,
javax.faces.component.UIComponent compositeComponentBase)
throws java.io.IOException
- Throws:
java.io.IOException
setAttributes
public void setAttributes(javax.faces.view.facelets.FaceletContext ctx,
java.lang.Object instance)
- Overrides:
setAttributes
in class javax.faces.view.facelets.DelegatingMetaTagHandler
createMetaRuleset
protected javax.faces.view.facelets.MetaRuleset createMetaRuleset(java.lang.Class<?> type,
java.beans.BeanInfo beanInfo)
apply
public boolean apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
java.lang.String name)
throws java.io.IOException,
javax.faces.FacesException,
javax.faces.view.facelets.FaceletException,
javax.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 interface TemplateClient
- 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:
java.io.IOException
javax.faces.FacesException
javax.faces.view.facelets.FaceletException
javax.el.ELException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.