javax.faces.component

Interface StateHelper

    • Method Detail

      • put

        Object put(Serializable key,
                   Object value)

        Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component.

        Parameters:
        key - the key for the value
        value - the value
        Since:
        2.0
      • remove

        Object remove(Serializable key)

        Remove the key/value pair from the helper, returning the value previously stored under this key.

        Parameters:
        key - the key to remove
        Since:
        2.0
      • put

        Object put(Serializable key,
                   String mapKey,
                   Object value)

        Store the specified mapKey/value in a Map that is internal to the helper, and return the previously stored value. The Map will then be associated with key.

        It's important to note for delta tracking that any modifications to the internal Map be made through this method or remove(java.io.Serializable, Object).

        Parameters:
        key - the key of the map itself
        mapKey - the key within the internal map
        value - the value for the key in the internal map
        Since:
        2.0
      • get

        Object get(Serializable key)

        Return the value currently associated with the specified key if any.

        Parameters:
        key - the key for which the value should be returned.
        Since:
        2.0
      • eval

        Object eval(Serializable key)

        Attempts to find a value associated with the specified key, using the value expression collection from the component if no such value is found.

        Parameters:
        key - the name of the value in the internal map, or the name of a value expression in the components value expression collection.

        Since:
        2.0
      • eval

        Object eval(Serializable key,
                    Object defaultValue)

        Performs the same logic as eval(java.io.Serializable) } but if no value is found, this will return the specified defaultValue

        Parameters:
        key - the key for which the value should be returned.
        defaultValue - the value to return if no value is found in the call to eval().
        Since:
        2.0
      • add

        void add(Serializable key,
                 Object value)

        Store the specified value in a List that is internal to the StateHelper.

        It's important to note for delta tracking that any modifications to the internal List be made through this method or remove(java.io.Serializable, Object).

        Parameters:
        key - the key for which the value should be returned.
        value - the value to add
        Since:
        2.0
      • remove

        Object remove(Serializable key,
                      Object valueOrKey)

        Remove a value from the inner data structure. Look in the inner data structure for the value at the given key. If the value is a Map, remove and return the value under the key given by the valueOrKey argument. If the value is a Collection, simply remove the value given by the argument valueOrKey and return null.

        Parameters:
        key - the key of in the inner data structure whose value is a Collection or Map
        valueOrKey - the value or key to be removed.

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/StateHelper.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, StateHelper (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.