-
@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface FacesValidator
The presence of this annotation on a class automatically registers the class with the runtime as a
Validator
. The value of thevalue()
attribute is taken to be the validator-id and the fully qualified class name of the class to which this annotation is attached is taken to be the validator-class. The implementation must guarantee that for each class annotated withFacesValidator
, found with the algorithm in section JSF.11.5,Application.addValidator(java.lang.String,java.lang.String)
is called, passing the derived validator-id as the first argument and the derived validator-class as the second argument. The implementation must guarantee that all such calls toaddValidator()
happen during application startup time and before any requests are serviced.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description boolean
isDefault
If
true
, the validator id for this annotation is added to the list of default validators by a call toApplication.addDefaultValidatorId(java.lang.String)
.String
value
The value of this annotation attribute is taken to be the validator-id with which instances of this class of component can be instantiated by calling
Application.createValidator(java.lang.String)
.
-
-
-
Element Detail
-
value
public abstract String value
The value of this annotation attribute is taken to be the validator-id with which instances of this class of component can be instantiated by calling
Application.createValidator(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 validator with this derived name is found, the results are undefined.- Default:
- ""
-
-
-
isDefault
public abstract boolean isDefault
If
true
, the validator id for this annotation is added to the list of default validators by a call toApplication.addDefaultValidatorId(java.lang.String)
.- Default:
- false
-
-
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/validator/FacesValidator.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.