javax.faces.view.facelets
Class DelegatingMetaTagHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by javax.faces.view.facelets.MetaTagHandler
          extended by javax.faces.view.facelets.DelegatingMetaTagHandler
All Implemented Interfaces:
FaceletHandler
Direct Known Subclasses:
ComponentHandler, FaceletsAttachedObjectHandler

public abstract class DelegatingMetaTagHandler
extends MetaTagHandler

Enable the JSF implementation to provide the appropriate behavior for the kind of MetaTagHandler subclass for each kind of element in the view, while providing a base-class from which those wanting to make a Java language custom tag handler can inherit. The JSF runtime provides the implementation of getTagHandlerDelegate() for the appropriate subclass.


Constructor Summary
DelegatingMetaTagHandler(TagConfig config)
           
 
Method Summary
 void apply(FaceletContext ctx, UIComponent parent)
          

The default implementation simply calls through to TagHandlerDelegate.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent).

 void applyNextHandler(FaceletContext ctx, UIComponent c)
          

Invoke the apply() method on this instance's TagHandler.nextHandler.

 TagAttribute getBinding()
           
 Tag getTag()
           
 TagAttribute getTagAttribute(String localName)
           
 String getTagId()
           
 boolean isDisabled(FaceletContext ctx)
           
 void setAttributes(FaceletContext ctx, Object instance)
          Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.
 
Methods inherited from class javax.faces.view.facelets.TagHandler
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegatingMetaTagHandler

public DelegatingMetaTagHandler(TagConfig config)
Method Detail

isDisabled

public boolean isDisabled(FaceletContext ctx)

getBinding

public TagAttribute getBinding()

getTag

public Tag getTag()

getTagId

public String getTagId()

getTagAttribute

public TagAttribute getTagAttribute(String localName)

setAttributes

public void setAttributes(FaceletContext ctx,
                          Object instance)
Description copied from class: MetaTagHandler
Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.


apply

public void apply(FaceletContext ctx,
                  UIComponent parent)
           throws IOException

The default implementation simply calls through to TagHandlerDelegate.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent).

Parameters:
ctx - the FaceletContext for this view execution
parent - the parent UIComponent of the component represented by this element instance.
Throws:
IOException - if unable to load relativePath
Since:
2.0

applyNextHandler

public void applyNextHandler(FaceletContext ctx,
                             UIComponent c)
                      throws IOException,
                             FacesException,
                             javax.el.ELException

Invoke the apply() method on this instance's TagHandler.nextHandler.

Parameters:
ctx - the FaceletContext for this view execution
c - the UIComponent of the component represented by this element instance.
Throws:
IOException
FacesException
javax.el.ELException
Since:
2.0