-
@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface FacesComponent
The presence of this annotation on a class that extends
UIComponent
must cause the runtime to register this class as a component suitable for inclusion in a view. If thecreateTag
attribute istrue
, the runtime must create a corresponding Facelet tag handler according to the rules specified in the attributes of this annotation.
-
-
Field Summary
Fields Modifier and Type Fields and Description static String
NAMESPACE
Components that declare a
createTag = true
attribute will be placed into this tag namespace if the namespace attribute is omitted.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description boolean
createTag
If the value of this attribute is
true
, the runtime must create a Facelet tag handler, that extends fromComponentHandler
, suitable for use in pages under the tag library with namespace given by the value of thenamespace()
attribute.String
namespace
If the value of the
createTag()
attribute istrue
, the value of this attribute is taken to be the tag library namespace into which this component is placed.String
tagName
If the value of the
createTag()
attribute istrue
, the runtime must use this value as the tag name for including an instance of the component annotated with this annotation in a view.String
value
The value of this annotation attribute is taken to be the component-type with which instances of this class of component can be instantiated by calling
Application.createComponent(java.lang.String)
.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
Components that declare a
createTag = true
attribute will be placed into this tag namespace if the namespace attribute is omitted.
-
-
Element Detail
-
value
public abstract String value
The value of this annotation attribute is taken to be the component-type with which instances of this class of component can be instantiated by calling
Application.createComponent(java.lang.String)
. If no value is specified, or the value isnull
, the value is taken to be the return of callinggetSimpleName
on the class to which this annotation is attached and lowercasing the first character. If more than one component with this derived name is found, the results are undefined.- Default:
- ""
-
-
-
createTag
public abstract boolean createTag
If the value of this attribute is
true
, the runtime must create a Facelet tag handler, that extends fromComponentHandler
, suitable for use in pages under the tag library with namespace given by the value of thenamespace()
attribute.- Default:
- false
-
-
-
tagName
public abstract String tagName
If the value of the
createTag()
attribute istrue
, the runtime must use this value as the tag name for including an instance of the component annotated with this annotation in a view. If this attribute is not specified on a usage of this annotation, the simple name of the class on which this annotation is declared, with the first character lowercased, is taken to be the value.- Default:
- ""
-
-
-
namespace
public abstract String namespace
If the value of the
createTag()
attribute istrue
, the value of this attribute is taken to be the tag library namespace into which this component is placed.- Default:
- "http://xmlns.jcp.org/jsf/component"
-
-
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/component/FacesComponent.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.