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.
Modifier and Type | Field and Description |
---|---|
protected TagHandlerDelegateFactory |
delegateFactory |
nextHandler, tag, tagId
Constructor and Description |
---|
DelegatingMetaTagHandler(TagConfig config) |
getAttribute, getRequiredAttribute, toString
protected TagHandlerDelegateFactory delegateFactory
public DelegatingMetaTagHandler(TagConfig config)
protected abstract TagHandlerDelegate getTagHandlerDelegate()
public boolean isDisabled(FaceletContext ctx)
public TagAttribute getBinding()
public Tag getTag()
public String getTagId()
public TagAttribute getTagAttribute(String localName)
public void setAttributes(FaceletContext ctx, Object instance)
MetaTagHandler
setAttributes
in class MetaTagHandler
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)
.
ctx
- the FaceletContext
for this view executionparent
- the parent UIComponent
of the
component represented by this element instance.IOException
- if unable to load relativePath
public void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, ELException
Invoke the apply()
method on this instance's TagHandler.nextHandler
.
ctx
- the FaceletContext
for this view executionc
- the UIComponent
of the
component represented by this element instance.IOException
FacesException
ELException
protected MetaRuleset createMetaRuleset(Class type)
The default implementation simply
calls through to TagHandlerDelegate.createMetaRuleset(java.lang.Class)
and
returns the result.
createMetaRuleset
in class MetaTagHandler
type
- the Class
for which the
MetaRuleset
must be created.Copyright © 2017 JBoss by Red Hat. All rights reserved.