Basic Customization > User Interface Customization > Presenting Information in the UI > UI Validation > Solutions > Procedures – Post-Submit Validation > Implementing Post-Submit Validation Methods
  
Implementing Post-Submit Validation Methods
There is only one post-submit validation method that can be implemented in a validator –The respective name of the method is validateFormSubmission(). This method is intended to be called after a wizard "next" or "finish" action is invoked, to determine whether or not the user-entered data is valid.
public class MyValidator extends DefaultUIComponentValidator{
@Override
public UIValidationResult validateFormSubmission
(UIValidationKey validationKey,
UIValidationCriteria validationCriteria, Locale
locale) throws WTException {
UIValidationResult result =
UIValidationResult.newInstance(validationKey,

UIValidationStatus.NOT_VALIDATED);

// perform your business logic here
// if you want to execute the action, do this:
// result = UIValidationResult.newInstance(validationKey,
UIValidationStatus.PERMITTED);
// if you want to abort the action, do this:
// result = UIValidationResult.newInstance(validationKey,
UIValidationStatus.DENIED);
// if you want to prompt the user for confirmation, do this:
// result = UIValidationResult.newInstance(validationKey,
//
UIValidationStatus.PROMPT_FOR_CONFIRMATION);

return result;

}

}