javax.faces.component

Annotation Type FacesComponent


  • @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 the createTag attribute is true, the runtime must create a corresponding Facelet tag handler according to the rules specified in the attributes of this annotation.

    • 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 is null, the value is taken to be the return of calling getSimpleName 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 from ComponentHandler, suitable for use in pages under the tag library with namespace given by the value of the namespace() attribute.

        Default:
        false
      • tagName

        public abstract String tagName

        If the value of the createTag() attribute is true, 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 is true, 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"

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

21/08/2025 13:04:17 Cette version de la page est en cache (à la date du 21/08/2025 13:04:17) 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/component/FacesComponent.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

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, FacesComponent (Java(TM) EE 7 Specification APIs)

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.