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
public class CompositeComponentResourceTagHandler
- extends ComponentHandler
- implements ComponentBuilderHandler
This handler is responsible for apply composite components. It
is created by CompositeResourceLibrary class when a composite component
is found.
- Version:
- $Revision: 909661 $ $Date: 2010-02-12 18:38:34 -0500 (Fri, 12 Feb 2010) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Field Summary |
static java.lang.String |
ATTACHED_OBJECT_HANDLERS_KEY
This key is used to keep the list of AttachedObjectHandlers
created when a composite component is created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ATTACHED_OBJECT_HANDLERS_KEY
public static final java.lang.String ATTACHED_OBJECT_HANDLERS_KEY
- This key is used to keep the list of AttachedObjectHandlers
created when a composite component is created. Tag handlers
exposing attached objects should call
addAttachedObjectHandler(UIComponent, AttachedObjectHandler)
that uses this key to save this list on component attribute
map.
- See Also:
- Constant Field Values
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
applyCompositeComponentFacelet
protected void applyCompositeComponentFacelet(FaceletContext faceletContext,
UIComponent compositeComponentBase)
throws java.io.IOException
- Throws:
java.io.IOException
addAttachedObjectHandler
public static void addAttachedObjectHandler(UIComponent compositeComponentParent,
AttachedObjectHandler handler)
- Add to the composite component parent this handler, so it will be processed later when
ViewDeclarationLanguage.retargetAttachedObjects is called (see applyNextHandler method).
Tag Handlers exposing attached objects should call this method to expose them when the
parent to be applied is a composite components.
- Parameters:
compositeComponentParent
- handler
-
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)
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.