}
protected void validatePage(Object command, Errors errors, int page) {
FolderForm folderForm = (FolderForm) command;
InputValidator inputValidator = (InputValidator) getValidator();
switch (page) {
case 0:
errors.setNestedPath("folder.pi");
inputValidator.validatePageOne(folderForm.getFolder().getPi(),
errors);
logger.info("WizardCTRL - validatePageOne() was called");
break;
case 1:
errors.setNestedPath("folder");
inputValidator.validatePageTwo(folderForm.getFolder(), errors);
logger.info("WizardCTRL - validatePageTwo() was called");
break;
case 2:
errors.setNestedPath("folder.currentPromoDetail");
inputValidator.validatePageThree(folderForm.getFolder()
.getCurrentPromoDetail(), errors);
logger.info("WizardCTRL - validatePageThree() was called");
break;
}
errors.setNestedPath("");