Class CdiValidator

    • Constructor Detail

      • CdiValidator

        public CdiValidator()
        Constructor.
      • CdiValidator

        public CdiValidator​(String validatorId,
                            Validator delegate)
        Constructor.
        Parameters:
        validatorId - the validator id.
        delegate - the delegate.
    • Method Detail

      • saveState

        public Object saveState​(FacesContext facesContext)
        Save the state.
        Specified by:
        saveState in interface StateHolder
        Parameters:
        facesContext - the Faces context.
        Returns:
        the saved object.
      • restoreState

        public void restoreState​(FacesContext facesContext,
                                 Object state)
        Restore the state.
        Specified by:
        restoreState in interface StateHolder
        Parameters:
        facesContext - the Faces context.
        state - the state.
      • isTransient

        public boolean isTransient()
        Is the validator transient.
        Specified by:
        isTransient in interface StateHolder
        Returns:
        false
      • setTransient

        public void setTransient​(boolean transientValue)
        Set the validator to transient.

        We ignore the call as our proxy is always non-transient.

        Specified by:
        setTransient in interface StateHolder
        Parameters:
        transientValue - the transient value.