Package codetroopers.wicket.web.parsley.validator

Examples of codetroopers.wicket.web.parsley.validator.ParsleyValidationBehavior


     * there is no need to extract a not null behavior.
     */
    @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


     * required is put automatically if the ParsleyValidationBehavior is manually added to a component,
     * there is no need to extract a not null behavior.
     */
    @Override
    public void modify(final FormComponent<?> component, final ComponentTag tag, final NotNull annotation) {
        final ParsleyValidationBehavior validationBehavior = new ParsleyValidationBehavior();
        validationBehavior.require(true);
        validationBehavior.onComponentTag(component, tag);
    }
View Full Code Here

TOP

Related Classes of codetroopers.wicket.web.parsley.validator.ParsleyValidationBehavior

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.