Examples of onComponentTag()


Examples of codetroopers.wicket.web.parsley.validator.ParsleyEmailValidationBehavior.onComponentTag()

     * we're using the existing behaviors to keep a correct DRYness
     */
    @Override
    public void modify(final FormComponent<?> component, final ComponentTag tag, final Annotation annotation) {
        final ParsleyEmailValidationBehavior emailValidator = new ParsleyEmailValidationBehavior();
        emailValidator.onComponentTag(component, tag);
    }
}
View Full Code Here

Examples of codetroopers.wicket.web.parsley.validator.ParsleyNumberValueValidationBehaviors.ParsleyMaxValueValidationBehavior.onComponentTag()

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

Examples of codetroopers.wicket.web.parsley.validator.ParsleyNumberValueValidationBehaviors.ParsleyMinValueValidationBehavior.onComponentTag()

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

Examples of codetroopers.wicket.web.parsley.validator.ParsleyPatternValidationBehavior.onComponentTag()

    public void modify(final FormComponent<?> component, final ComponentTag tag, final Pattern annotation) {
        PatternBag bag = new PatternBag(getLabelString(component), annotation.regexp());
        final ParsleyPatternValidationBehavior patternValidator =
                new ParsleyPatternValidationBehavior(annotation.regexp(),
                                                     getLocalizedMessage(component, annotation.message(), bag));
        patternValidator.onComponentTag(component, tag);
    }
}
View Full Code Here

Examples of codetroopers.wicket.web.parsley.validator.ParsleySizeValidationBehaviors.ParsleyMaxLengthValidationBehavior.onComponentTag()

    @Override
    public void modify(final FormComponent<?> component, final ComponentTag tag, final Size annotation) {
        final ParsleyMinLengthValidationBehavior minValidator = new ParsleyMinLengthValidationBehavior(annotation.min());
        minValidator.onComponentTag(component, tag);
        final ParsleyMaxLengthValidationBehavior maxValidator = new ParsleyMaxLengthValidationBehavior(annotation.max());
        maxValidator.onComponentTag(component, tag);
    }
}
View Full Code Here

Examples of codetroopers.wicket.web.parsley.validator.ParsleySizeValidationBehaviors.ParsleyMinLengthValidationBehavior.onComponentTag()

     * we're using the existing behaviors to keep a correct DRYness
     */
    @Override
    public void modify(final FormComponent<?> component, final ComponentTag tag, final Size annotation) {
        final ParsleyMinLengthValidationBehavior minValidator = new ParsleyMinLengthValidationBehavior(annotation.min());
        minValidator.onComponentTag(component, tag);
        final ParsleyMaxLengthValidationBehavior maxValidator = new ParsleyMaxLengthValidationBehavior(annotation.max());
        maxValidator.onComponentTag(component, tag);
    }
}
View Full Code Here

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

        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

Examples of org.apache.wicket.behavior.Behavior.onComponentTag()

        while (tagBehaviors.hasNext())
        {
          final Behavior behavior = tagBehaviors.next();
          if (behavior.isEnabled(this))
          {
            behavior.onComponentTag(this, tag);
          }
          behavior.detach(this);
        }
      }
View Full Code Here

Examples of org.apache.wicket.behavior.Behavior.onComponentTag()

        for (Behavior behavior : behaviors)
        {
          // Components may reject some behavior components
          if (isBehaviorAccepted(behavior))
          {
            behavior.onComponentTag(this, tag);
          }
        }
      }

      if ((tag instanceof WicketTag) && !tag.isClose() &&
View Full Code Here

Examples of org.apache.wicket.behavior.Behavior.onComponentTag()

        while (tagBehaviors.hasNext())
        {
          final Behavior behavior = tagBehaviors.next();
          if (behavior.isEnabled(this))
          {
            behavior.onComponentTag(this, tag);
          }
          behavior.detach(this);
        }
      }
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.