javax.faces.component

Interface EditableValueHolder

    • Method Detail

      • getSubmittedValue

        Object getSubmittedValue()

        Return the submittedValue value of this component. This method should only be used by the encodeBegin() and/or encodeEnd() methods of this component, or its corresponding Renderer. The action taken based on whether the value is null, empty, or non-null is determined based on the value of the javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param.

      • resetValue

        void resetValue()

        Convenience method to reset this component's value to the un-initialized state.

        Since:
        2.0
      • setSubmittedValue

        void setSubmittedValue(Object submittedValue)

        Set the submittedValue value of this component. This method should only be used by the decode() and validate() method of this component, or its corresponding Renderer. The action taken based on whether the value is null, empty, or non-null is determined based on the value of the javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param.

        Parameters:
        submittedValue - The new submitted value
      • isLocalValueSet

        boolean isLocalValueSet()
        Return the "local value set" state for this component. Calls to setValue() automatically reset this property to true.
      • setLocalValueSet

        void setLocalValueSet(boolean localValueSet)
        Sets the "local value set" state for this component.
      • isValid

        boolean isValid()

        Return a flag indicating whether the local value of this component is valid (no conversion error has occurred).

      • setValid

        void setValid(boolean valid)

        Set a flag indicating whether the local value of this component is valid (no conversion error has occurred).

        Parameters:
        valid - The new valid flag
      • isRequired

        boolean isRequired()

        Return the "required field" state for this component.

      • setRequired

        void setRequired(boolean required)

        Set the "required field" state for this component.

        Parameters:
        required - The new "required field" state
      • isImmediate

        boolean isImmediate()

        Return the "immediate" state for this component.

      • setImmediate

        void setImmediate(boolean immediate)

        Set the "immediate" state for this component. When set to true, the component's value will be converted and validated immediately in the Apply Request Values phase, and ValueChangeEvents will be delivered in that phase as well. The default value for this property must be false.

        Parameters:
        immediate - The new "immediate" state
      • setValidator

        void setValidator(MethodBinding validatorBinding)
        Deprecated. Use addValidator(javax.faces.validator.Validator) instead, obtaining the argument Validator by creating an instance of MethodExpressionValidator.

        Wrap the argument validatorBinding in an implementation of Validator and store it in the internal data structure that backs the getValidators() method, taking care to over-write any instance that was stored by a previous call to setValidator.

        The argument method will be called during the Process Validations or Apply Request Values phases (depending on the value of the immediate property).

        Any method referenced by such an expression must be public, with a return type of void, and accept parameters of type FacesContext, UIComponent, and Object.

        Parameters:
        validatorBinding - The new MethodBinding instance
      • getValidators

        Validator[] getValidators()

        Return the set of registered Validators for this component instance. If there are no registered validators, a zero-length array is returned.

      • removeValidator

        void removeValidator(Validator validator)

        Remove a Validator instance from the set associated with this component, if it was previously associated. Otherwise, do nothing.

        Parameters:
        validator - The Validator to remove
      • getValueChangeListeners

        ValueChangeListener[] getValueChangeListeners()

        Return the set of registered ValueChangeListeners for this component instance. If there are no registered listeners, a zero-length array is returned.

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