Module wicket.bootstrap.extensions
Class SimpleMessageValidation
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.ValidationBehavior<SimpleValidationConfig>
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.SimpleMessageValidation
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
Validation behavior.
Display error messages on form.
This behavior may not work properly with widgets like bootstrap-select or select2. In this case try to wrap all inputs in div (that's done by default in bootstrap form layout) and set appendToParent of config to true.DO NOT USE SimpleMessageValidation behavior and TooltipValidation behavior on one page.
- Since:
- 15.09.2014
- Author:
- Alexey Volkov
- See Also:
-
FeedbackMessageBehaviorVisitor- Serialized Form
-
Field Summary
Fields inherited from class de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.ValidationBehavior
config -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Methods inherited from class de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.ValidationBehavior
bind, getConfig, onEventMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onException, onRemove, onTag, unbind
-
Constructor Details
-
SimpleMessageValidation
public SimpleMessageValidation() -
SimpleMessageValidation
-
-
Method Details
-
renderHead
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classValidationBehavior<SimpleValidationConfig>
-