Examples of RestValidationError


Examples of org.wicketstuff.rest.utils.wicket.validator.RestValidationError

public class CustomValidator implements IValidator {

  @Override
  public void validate(IValidatable validatable) {
    RestValidationError restValidationError =
        new RestValidationError(Arrays.asList("CustomValidator"), Collections.<String, Object>emptyMap(),
            "customField");
   
    validatable.error(restValidationError);
  }
View Full Code Here

Examples of org.wicketstuff.rest.utils.wicket.validator.RestValidationError

        PersonPojo person = validatable.getValue();
        Matcher matcher = emailPattern.matcher(person.getEmail());

        if (!matcher.matches()) {
            validatable.error(new RestValidationError(Arrays.asList(INVALID_MAIL_KEY),
                    Collections.EMPTY_MAP, "email"));
        }
    }
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.