Package domain.logic

Examples of domain.logic.InputValidator


  }

  @Override
  protected void validatePage(Object command, Errors errors, int page) {
    FolderForm folderForm = (FolderForm) command;
    InputValidator inputValidator = (InputValidator) getValidator();

    switch (page) {
    case 1:
      errors.setNestedPath("folder.pi");
      inputValidator.validatePageOne(folderForm.getFolder().getPi(),
          errors);
      break;
    case 2:
      errors.setNestedPath("folder");
      inputValidator.validatePageTwo(folderForm.getFolder(), errors);
      break;
    default:
      break;
    }
    errors.setNestedPath("");
View Full Code Here


  }

  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("");
View Full Code Here

TOP

Related Classes of domain.logic.InputValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.