- 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
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 ofgetTagHandlerDelegate()
for the appropriate subclass.
-
-
Field Summary
Fields Modifier and Type Field and Description protected TagHandlerDelegateFactory
delegateFactory
-
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
-
-
Constructor Summary
Constructors Constructor and Description DelegatingMetaTagHandler(TagConfig config)
-
Method Summary
-
Methods inherited from class javax.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
-
-
-
-
Field Detail
-
delegateFactory
protected TagHandlerDelegateFactory delegateFactory
-
-
Constructor Detail
-
DelegatingMetaTagHandler
public DelegatingMetaTagHandler(TagConfig config)
-
-
Method Detail
-
getTagHandlerDelegate
protected abstract TagHandlerDelegate getTagHandlerDelegate()
-
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.- Overrides:
setAttributes
in classMetaTagHandler
-
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
- theFaceletContext
for this view executionparent
- the parentUIComponent
of the component represented by this element instance.- Throws:
IOException
- if unable to loadrelativePath
- Since:
- 2.0
-
applyNextHandler
public void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, 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
ELException
- Since:
- 2.0
-
createMetaRuleset
protected MetaRuleset createMetaRuleset(Class type)
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
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
22/08/2025 04:08:57 Cette version de la page est en cache (à la date du 22/08/2025 04:08:57) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/faces/view/facelets/delegatingmetataghandler.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.