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:
- 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: 964310 $ $Date: 2010-07-15 01:17:19 -0500 (Thu, 15 Jul 2010) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
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,FaceletHandler> _facetHandlersMap
_componentHandlers
protected final java.util.Collection<FaceletHandler> _componentHandlers
_facetHandlers
protected final java.util.Collection<FaceletHandler> _facetHandlers
CompositeComponentResourceTagHandler
public CompositeComponentResourceTagHandler(ComponentConfig config,
Resource resource)
createComponent
public UIComponent createComponent(FaceletContext ctx)
- Specified by:
createComponent
in interface ComponentBuilderHandler
applyNextHandler
public void applyNextHandler(FaceletContext ctx,
UIComponent c)
throws java.io.IOException
- Overrides:
applyNextHandler
in class DelegatingMetaTagHandler
- Throws:
java.io.IOException
applyNextHandlerIfNotApplied
protected void applyNextHandlerIfNotApplied(FaceletContext ctx,
UIComponent c)
throws java.io.IOException
- Throws:
java.io.IOException
applyCompositeComponentFacelet
protected void applyCompositeComponentFacelet(FaceletContext faceletContext,
UIComponent compositeComponentBase)
throws java.io.IOException
- Throws:
java.io.IOException
setAttributes
public void setAttributes(FaceletContext ctx,
java.lang.Object instance)
- Overrides:
setAttributes
in class DelegatingMetaTagHandler
createMetaRuleset
protected MetaRuleset createMetaRuleset(java.lang.Class<?> type,
java.beans.BeanInfo beanInfo)
apply
public boolean apply(FaceletContext ctx,
UIComponent parent,
java.lang.String name)
throws java.io.IOException,
FacesException,
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
FacesException
FaceletException
javax.el.ELException
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.