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.

    • 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 from ComponentHandler, suitable for use in pages under the tag library with namespace given by the value of the namespace() attribute.

      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.

      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.

      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).

      Eerste pagina van API Java Inhoudsopgave Haut

    • 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"

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/component/facescomponent.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

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

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.