Package codetroopers.wicket.web.parsley.tagmodifier.bags

Examples of codetroopers.wicket.web.parsley.tagmodifier.bags.ValueBag


    /**
     * we're using the existing behaviors to keep a correct DRYness
     */
    @Override
    public void modify(final FormComponent<?> component, final ComponentTag tag, final Max annotation) {
        ValueBag bag = new ValueBag(getLabelString(component), annotation.value());
        final ParsleyMaxValueValidationBehavior maxValidator =
                new ParsleyMaxValueValidationBehavior(annotation.value(),
                                                      getLocalizedMessage(component, annotation.message(), bag));
        maxValidator.onComponentTag(component, tag);
    }
View Full Code Here


    /**
     * we're using the existing behaviors to keep a correct DRYness
     */
    @Override
    public void modify(final FormComponent<?> component, final ComponentTag tag, final Min annotation) {
        ValueBag bag = new ValueBag(getLabelString(component), annotation.value());
        final ParsleyMinValueValidationBehavior minValidator =
                new ParsleyMinValueValidationBehavior(annotation.value(),
                                                      getLocalizedMessage(component, annotation.message(), bag));
        minValidator.onComponentTag(component, tag);
    }
View Full Code Here

TOP

Related Classes of codetroopers.wicket.web.parsley.tagmodifier.bags.ValueBag

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.