- 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
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/faces/view/facelets/delegatingmetataghandler.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.