Package javax.faces.view.facelets
Class DelegatingMetaTagHandler
java.lang.Object
javax.faces.view.facelets.TagHandler
javax.faces.view.facelets.MetaTagHandler
javax.faces.view.facelets.DelegatingMetaTagHandler
- All Implemented Interfaces:
FaceletHandler
- Direct Known Subclasses:
ComponentHandler
,FaceletsAttachedObjectHandler
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.
-
Field Summary
FieldsFields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(FaceletContext ctx, UIComponent parent) The default implementation simply calls through toTagHandlerDelegate.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent)
.void
Invoke theapply()
method on this instance'sTagHandler.nextHandler
.protected MetaRuleset
createMetaRuleset
(Class type) The default implementation simply calls through toTagHandlerDelegate.createMetaRuleset(java.lang.Class)
and returns the result.getTag()
getTagAttribute
(String localName) protected abstract TagHandlerDelegate
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
getAttribute, getRequiredAttribute, toString
-
Field Details
-
delegateFactory
-
-
Constructor Details
-
DelegatingMetaTagHandler
-
-
Method Details
-
getTagHandlerDelegate
-
isDisabled
-
getBinding
-
getTag
-
getTagId
-
getTagAttribute
-
setAttributes
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.- Overrides:
setAttributes
in classMetaTagHandler
- Parameters:
ctx
-instance
-
-
apply
The default implementation simply calls through to
TagHandlerDelegate.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent)
.- Parameters:
ctx
- theFaceletContext
for this view executionparent
- the parentUIComponent
of the component represented by this element instance.- Throws:
IOException
- Since:
- 2.0
-
applyNextHandler
public void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, javax.el.ELException Invoke the
apply()
method on this instance'sTagHandler.nextHandler
.- Parameters:
ctx
- theFaceletContext
for this view executionc
- theUIComponent
of the component represented by this element instance.- Throws:
IOException
FacesException
javax.el.ELException
- Since:
- 2.0
-
createMetaRuleset
The default implementation simply calls through to
TagHandlerDelegate.createMetaRuleset(java.lang.Class)
and returns the result.- Specified by:
createMetaRuleset
in classMetaTagHandler
- Parameters:
type
- theClass
for which theMetaRuleset
must be created.- Since:
- 2.0
-