Package com.vaadin.data.Validator

Examples of com.vaadin.data.Validator.InvalidValueException


   
    // Set id field to be unique
    form.getField("id").addValidator(new Validator() {
      public void validate(Object value) throws InvalidValueException {
        if (!isValid(value)) {
          throw new InvalidValueException(i18nManager.getMessage(Messages.GROUP_ID_UNIQUE));
        }
      }
      public boolean isValid(Object value) {
        if (value != null) {
          return identityService.createGroupQuery().groupId(value.toString()).singleResult() == null;
View Full Code Here


        if (getConverter() != null) {
            try {
                valueToValidate = getConverter().convertToModel(fieldValue,
                        getLocale());
            } catch (Exception e) {
                throw new InvalidValueException(
                        getConversionError(getConverter().getModelType()));
            }
        }

        List<InvalidValueException> validationExceptions = new ArrayList<InvalidValueException>();
View Full Code Here

TOP

Related Classes of com.vaadin.data.Validator.InvalidValueException

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.