Module wicket.bootstrap.extensions
Class TooltipValidation
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.ValidationBehavior<TooltipValidationConfig>
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.TooltipValidation
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
Validation behavior.
Display errors in tooltips.
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, Osipov Anton
- See Also:
-
Field Summary
Fields inherited from class de.agilecoders.wicket.extensions.markup.html.bootstrap.form.validation.ValidationBehavior
config -
Constructor Summary
Constructors -
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
-
TooltipValidation
public TooltipValidation() -
TooltipValidation
-
-
Method Details
-
renderHead
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classValidationBehavior<TooltipValidationConfig>
-