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: 1306829 $ $Date: 2012-03-29 08:03:06 -0500 (Thu, 29 Mar 2012) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
_facetHandlersMap
protected volatile Map<String,FaceletHandler> _facetHandlersMap
_componentHandlers
protected final Collection<FaceletHandler> _componentHandlers
_facetHandlers
protected final 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 IOException
- Overrides:
applyNextHandler
in class DelegatingMetaTagHandler
- Throws:
IOException
applyNextHandlerIfNotApplied
protected void applyNextHandlerIfNotApplied(FaceletContext ctx,
UIComponent c)
throws IOException
- Throws:
IOException
applyCompositeComponentFacelet
protected void applyCompositeComponentFacelet(FaceletContext faceletContext,
UIComponent compositeComponentBase)
throws IOException
- Throws:
IOException
setAttributes
public void setAttributes(FaceletContext ctx,
Object instance)
- Overrides:
setAttributes
in class DelegatingMetaTagHandler
createMetaRuleset
protected MetaRuleset createMetaRuleset(Class<?> type,
BeanInfo beanInfo)
apply
public boolean apply(FaceletContext ctx,
UIComponent parent,
String name)
throws 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:
IOException
FacesException
FaceletException
javax.el.ELException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.