Class ValidationCompleteEvent

    • Constructor Detail

      • ValidationCompleteEvent

        public ValidationCompleteEvent​(JsfValidationResult jsfValidationResult,
                                       boolean incremental)
        Creates a new POJO with the given values.
        Parameters:
        jsfValidationResult - The value as it will be returned by getJsfValidationResult().
        incremental - The value as it will be returned by isIncremental().
    • Method Detail

      • isIncremental

        public boolean isIncremental()
        false if the entire component and its children were validated, true if only part of the component or its children were validated. If true, JsfValidationResult.getValidState() and JsfValidationResult.getMessages() includes only components that have changed since the last non-incremental validation - do not assume anything about the validation state of other components.

        Incremental validation usually occurs when tag handlers or event listeners perform a validation outside the usually PhaseId.PROCESS_VALIDATIONS phase, such as <o:validateBean from OmniFaces.

        Returns:
        Whether the getJsfValidationResult() are incremental or not.
      • getJsfValidationResult

        public JsfValidationResult getJsfValidationResult()
        Returns:
        The result of the validation, with all validation messages of the validated components.
        See Also:
        isIncremental()