|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.validation.validator.AbstractValidator
net.databinder.valid.hib.DatabinderValidator
public class DatabinderValidator
Checks a base model and property name against Hibernate Validator.
| Nested Class Summary | |
|---|---|
static class |
DatabinderValidator.UnrecognizedModelException
|
| Constructor Summary | |
|---|---|
DatabinderValidator()
Construct instance that attempts to determine the base object and property to validate form the component it is added to. |
|
DatabinderValidator(org.apache.wicket.model.IModel base,
java.lang.String property)
Validator for a property of an entity. |
|
| Method Summary | |
|---|---|
static void |
addTo(org.apache.wicket.markup.html.form.FormComponent formComponent)
Add immediately to a form component. |
void |
onAdded(org.apache.wicket.Component component)
Retains component for possible use in onValidate. |
protected void |
onValidate(org.apache.wicket.validation.IValidatable comp)
Checks the component against Hibernate Validator. |
boolean |
validateOnNullValue()
|
| Methods inherited from class org.apache.wicket.validation.validator.AbstractValidator |
|---|
error, error, error, error, messageModel, resourceKey, resourceKey, validate, validate, variablesMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabinderValidator(org.apache.wicket.model.IModel base,
java.lang.String property)
base - entity to validateproperty - property of base to validatepublic DatabinderValidator()
onValidate(IValidatable) (to allow the full component
hierarchy to be constructed). Do not use an instance for more than
one component.
| Method Detail |
|---|
protected void onValidate(org.apache.wicket.validation.IValidatable comp)
onValidate in class org.apache.wicket.validation.validator.AbstractValidatorpublic void onAdded(org.apache.wicket.Component component)
onAdded in interface org.apache.wicket.validation.IValidatorAddListenerpublic boolean validateOnNullValue()
validateOnNullValue in class org.apache.wicket.validation.validator.AbstractValidatorpublic static void addTo(org.apache.wicket.markup.html.form.FormComponent formComponent)
formComponent - component to add validator to
DatabinderValidator.UnrecognizedModelException - if no usable model is present
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||