Package org.apache.wicket.bean.validation

This package integrates bean validation framework into Wicket.

See:
          Description

Interface Summary
BeanValidationContext A read-only view of BeanValidationConfiguration that can be retrieved by components to access the validator and other helpers.
IPropertyResolver Resolves the property to be validated for the given form component.
ITagModifier<T extends Annotation> An object that can modify a component's markup tag during render based on values of a constraint annotation.
IViolationTranslator Converts ConstraintViolations into Wicket's ValidationErrors
 

Class Summary
BeanValidationConfiguration Configures bean validation and integrates it with Wicket
DefaultPropertyResolver Default property resolver.
DefaultValidatorProvider This is the default validator provider.
DefaultViolationTranslator A default implementation of IViolationTranslator.
GroupsModel A model that can hold on to an array of classes.
Property A reference to a property that can be validated.
PropertyValidator<T> Validator that delegates to the bean validation framework.
SessionLocaleInterpolator MessageInterpolator that adapts another to a locale from Wicket's Session
SizeTagModifier A tag modifier that adds the maxlength attribute to the input tag with the max value from the Size constraint annotation.
 

Package org.apache.wicket.bean.validation Description

This package integrates bean validation framework into Wicket.

The integration is configured using BeanValidationConfiguration. Usually this is done in Application's init method. Once the configuration is intialized and customized, the final step is to call configure passing in the application instance to be configured.

The configuration can be customized using the following integration points:

Once the application is configured form components can be validated by adding a PropertyValidator.



Copyright © 2006–2016 Apache Software Foundation. All rights reserved.