Package de.xima.fc.workflow.taglib.event
Class ValidationCompleteEvent
- java.lang.Object
-
- de.xima.fc.workflow.taglib.event.ValidationCompleteEvent
-
- All Implemented Interfaces:
Serializable
public class ValidationCompleteEvent extends Object implements Serializable
Event that is triggered when the JSF validation for aPropertiesForm
is done for that form. You need to set aPropertiesFormBase.getOnValidationComplete()
handler on the component.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationCompleteEvent(JsfValidationResult jsfValidationResult, boolean incremental)
Creates a new POJO with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsfValidationResult
getJsfValidationResult()
boolean
isIncremental()
false
if the entire component and its children were validated,true
if only part of the component or its children were validated.
-
-
-
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 bygetJsfValidationResult()
.incremental
- The value as it will be returned byisIncremental()
.
-
-
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. Iftrue
,JsfValidationResult.getValidState()
andJsfValidationResult.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()
-
-