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.

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 15:09:59 Cette version de la page est en cache (à la date du 21/08/2025 15:09:59) 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 14/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/faces/component/EditableValueHolder.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, EditableValueHolder (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.