Examples of checkForMaxlength()


Examples of com.centraview.common.Validation.checkForMaxlength()

    // cache the form data
    convertItemLines();

    try {
      Validation validation = new Validation();
      validation.checkForMaxlength("label.account.expense.description", this
          .getExpenseDescription(), "error.application.maxlength", errors, 40);
      validation.checkForRequired("label.account.expense.entity", this.getEntity(),
          "error.application.required", errors);
      validation.checkForRequired("label.account.expense.employee", this.getEmployee(),
          "error.application.required", errors);
View Full Code Here

Examples of com.centraview.common.Validation.checkForMaxlength()

      // initialize validation
      Validation validation = new Validation();

      validation.checkForRequired("error.activity.detail.title", sessionForm.getActivityTitle(),
          "error.application.required", errors);
      validation.checkForMaxlength("error.activity.detail.title", sessionForm.getActivityTitle(),
          "error.application.maxlength", errors, 255);

      if (sessionForm.getActivityRecurringFrequency() != null) {
        if (sessionForm.getActivityRecurringFrequency().equals("DAY")) {
          if (sessionForm.getActivityRecurringDailyDays() != null
View Full Code Here

Examples of com.centraview.common.Validation.checkForMaxlength()

        errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.general.requiredField", "Items"));
      }

      // title
      validation.checkForRequired("error.promotion.name", this.getPname(), "error.application.required", errors);
      validation.checkForMaxlength("error.promotion.name", this.getPname(), "error.application.maxlength", errors, 25);
      // detail
      validation.checkForRequired("label.promotion.desc", this.getPdescription(), "error.application.required", errors);
      validation.checkForMaxlength("error.promotion.desc", this.getPdescription(), "error.application.maxlength", errors, 100);

      validation.checkForRequired("error.promotion.startday", this.getStartday(), "error.application.required", errors);
View Full Code Here

Examples of com.centraview.common.Validation.checkForMaxlength()

      // title
      validation.checkForRequired("error.promotion.name", this.getPname(), "error.application.required", errors);
      validation.checkForMaxlength("error.promotion.name", this.getPname(), "error.application.maxlength", errors, 25);
      // detail
      validation.checkForRequired("label.promotion.desc", this.getPdescription(), "error.application.required", errors);
      validation.checkForMaxlength("error.promotion.desc", this.getPdescription(), "error.application.maxlength", errors, 100);

      validation.checkForRequired("error.promotion.startday", this.getStartday(), "error.application.required", errors);
      validation.checkForRequired("error.promotion.startyear", this.getStartyear(), "error.application.required", errors);
      validation.checkForRequired("error.promotion.startmonth", this.getStartmonth(), "error.application.required", errors);
      validation.checkForRequired("error.promotion.endyear", this.getEndyear(), "error.application.required", errors);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.