Class ValidationCompleteEvent

  • All Implemented Interfaces:
    Serializable

    public class ValidationCompleteEvent
    extends Object
    implements Serializable
    Event that is triggered when the JSF validation for a PropertiesForm is done for that form. You need to set a PropertiesFormBase.getOnValidationComplete() handler on the component.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • 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()