javax.faces.component.behavior

Class ClientBehaviorContext

    • Constructor Detail

      • ClientBehaviorContext

        public ClientBehaviorContext()
    • Method Detail

      • createClientBehaviorContext

        public static ClientBehaviorContext createClientBehaviorContext(FacesContext context,
                                                                        UIComponent component,
                                                                        String eventName,
                                                                        String sourceId,
                                                                        Collection<ClientBehaviorContext.Parameter> parameters)

        Creates a ClientBehaviorContext instance.

        Parameters:
        context - the FacesContext for the current request.
        component - the component instance to which the ClientBehavior is attached.
        eventName - the name of the behavior event to which the ClientBehavior is attached.
        sourceId - the id to use as the ClientBehavior's "source".
        parameters - the collection of parameters for submitting ClientBehaviors to include in the request.
        Returns:
        a ClientBehaviorContext instance configured with the provided values.
        Throws:
        NullPointerException - if context, component or eventName is null
        Since:
        2.0
      • getFacesContext

        public abstract FacesContext getFacesContext()

        Returns the FacesContext for the current request.

        Since:
        2.0
      • getEventName

        public abstract String getEventName()

        Returns the name of the behavior event for which the ClientBehavior script is being requested.

        Since:
        2.0
      • getSourceId

        public abstract String getSourceId()

        Returns an id for use as the ClientBehavior source. ClientBehavior implementations that submit back to the Faces lifecycle are required to identify which component triggered the ClientBehavior-initiated request via the javax.faces.source request parameter. In most cases, th source id can be trivially derived from the element to which the behavior's client-side script is attached - ie. the source id is typically the id of this element. However, in components which produce more complex content, the behavior script may not be able to determine the correct id to use for the javax.faces.source value. The getSourceId() method allows the component to pass this information into the ClientBehavior.getScript(javax.faces.component.behavior.ClientBehaviorContext) implementation.

        Returns:
        the id for the behavior's script to use as the "source", or null if the Behavior's script can identify the source from the DOM.
        Since:
        2.0
      • getParameters

        public abstract Collection<ClientBehaviorContext.Parameter> getParameters()

        Returns parameters that "submitting" ClientBehavior implementations should include when posting back data into the Faces lifecycle. If no parameters are specified, this method returns an empty (non-null) collection.

        Since:
        2.0

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/behavior/ClientBehaviorContext.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, ClientBehaviorContext (Java(TM) EE 7 Specification APIs)

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.