-
@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface FacesRenderer
The presence of this annotation on a class automatically registers the class with the runtime as a
Renderer
. The value of therenderKitId()
attribute is taken to be the render-kit-id to which an instance of thisRenderer
is to be added. There must be a public zero-argument constructor on any class where this annotation appears. The implementation must indicate a fatal error if such a constructor does not exist and the application must not be placed in service. Within thatRenderKit
, The value of therendererType()
attribute is taken to be the renderer-type, and the value of thecomponentFamily()
attribute is to be taken as the component-family. The implementation must guarantee that for each class annotated withFacesRenderer
, found with the algorithm in section JSF.11.5, the following actions are taken.Obtain a reference to the
RenderKitFactory
for this application.See if a
RenderKit
exists for render-kit-id. If so, let that instance be renderKit for discussion. If not, the implementation must indicate a fatal error if such aRenderKit
does not exist and the application must not be placed in service.Create an instance of this class using the public zero-argument constructor.
Call
RenderKit.addRenderer(java.lang.String, java.lang.String, javax.faces.render.Renderer)
on renderKit, passing component-family as the first argument, renderer-type as the second, and the newly instantiatedRenderKit
instance as the third argument.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element and Description String
componentFamily
The value of this annotation attribute is taken to be the component-family which, in combination with
rendererType()
can be used to obtain a reference to an instance of thisRenderer
by callingRenderKit.getRenderer(java.lang.String, java.lang.String)
.String
rendererType
The value of this annotation attribute is taken to be the renderer-type which, in combination with
componentFamily()
can be used to obtain a reference to an instance of thisRenderer
by callingRenderKit.getRenderer(java.lang.String, java.lang.String)
.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description String
renderKitId
The value of this annotation attribute is taken to be the render-kit-id in which an instance of this class of
Renderer
must be installed.
-
-
-
Element Detail
-
rendererType
public abstract String rendererType
The value of this annotation attribute is taken to be the renderer-type which, in combination with
componentFamily()
can be used to obtain a reference to an instance of thisRenderer
by callingRenderKit.getRenderer(java.lang.String, java.lang.String)
.
-
-
-
componentFamily
public abstract String componentFamily
The value of this annotation attribute is taken to be the component-family which, in combination with
rendererType()
can be used to obtain a reference to an instance of thisRenderer
by callingRenderKit.getRenderer(java.lang.String, java.lang.String)
.
-
-
-
renderKitId
public abstract String renderKitId
The value of this annotation attribute is taken to be the render-kit-id in which an instance of this class of
Renderer
must be installed.- Default:
- "HTML_BASIC"
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/faces/render/FacesRenderer.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.