org.apache.myfaces.view.facelets.tag.composite
Class CompositeComponentResourceTagHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by javax.faces.view.facelets.MetaTagHandler
          extended by javax.faces.view.facelets.DelegatingMetaTagHandler
              extended by javax.faces.view.facelets.ComponentHandler
                  extended by 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.
 
Fields inherited from class javax.faces.view.facelets.DelegatingMetaTagHandler
delegateFactory
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
CompositeComponentResourceTagHandler(ComponentConfig config, Resource resource)
           
 
Method Summary
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).
protected  void applyCompositeComponentFacelet(FaceletContext faceletContext, UIComponent compositeComponentBase)
           
 void applyNextHandler(FaceletContext ctx, UIComponent c)
           
 UIComponent createComponent(FaceletContext ctx)
           
protected  MetaRuleset createMetaRuleset(java.lang.Class<?> type, java.beans.BeanInfo beanInfo)
           
 void setAttributes(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
 

Field Detail

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
Constructor Detail

CompositeComponentResourceTagHandler

public CompositeComponentResourceTagHandler(ComponentConfig config,
                                            Resource resource)
Method Detail

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.