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.

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/component/EditableValueHolder.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com, EditableValueHolder (Java(TM) EE 7 Specification APIs)

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.