Package codetroopers.wicket.web.parsley.validator

Examples of codetroopers.wicket.web.parsley.validator.ParsleyValidationBehavior.error()


    @Override
    public void modify(final FormComponent<?> component, final ComponentTag tag, final NotNull annotation) {
        ValidatorBag bag = new ValidatorBag(getLabelString(component));
        final ParsleyValidationBehavior validationBehavior =
                new ParsleyValidationBehavior();
        validationBehavior.error("required", getLocalizedMessage(component, annotation.message(), bag));
        validationBehavior.require(true);
        validationBehavior.onComponentTag(component, tag);
    }

}
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.