diff --git a/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2ChoiceBootstrapFormComponent.java b/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2ChoiceBootstrapFormComponent.java index 919d0890..522cf431 100644 --- a/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2ChoiceBootstrapFormComponent.java +++ b/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2ChoiceBootstrapFormComponent.java @@ -14,13 +14,13 @@ */ package org.devgateway.toolkit.forms.wicket.components.form; +import de.agilecoders.wicket.core.util.Attributes; import org.apache.wicket.markup.ComponentTag; import org.apache.wicket.model.IModel; import org.wicketstuff.select2.ChoiceProvider; +import org.wicketstuff.select2.Select2BootstrapTheme; import org.wicketstuff.select2.Select2Choice; -import de.agilecoders.wicket.core.util.Attributes; - /** * @author mpostelnicu * @@ -80,6 +80,7 @@ protected void onInitialize() { field.getSettings().setAllowClear(true); field.getSettings().setCloseOnSelect(true); field.getSettings().setDropdownAutoWidth(true); + field.getSettings().setTheme(new Select2BootstrapTheme(false)); super.onInitialize(); } diff --git a/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2MultiChoiceBootstrapFormComponent.java b/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2MultiChoiceBootstrapFormComponent.java index b8e7155f..d5764252 100644 --- a/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2MultiChoiceBootstrapFormComponent.java +++ b/forms/src/main/java/org/devgateway/toolkit/forms/wicket/components/form/Select2MultiChoiceBootstrapFormComponent.java @@ -19,6 +19,7 @@ import org.apache.wicket.markup.ComponentTag; import org.apache.wicket.model.IModel; import org.wicketstuff.select2.ChoiceProvider; +import org.wicketstuff.select2.Select2BootstrapTheme; import org.wicketstuff.select2.Select2MultiChoice; import de.agilecoders.wicket.core.util.Attributes; @@ -79,6 +80,7 @@ protected void onInitialize() { field.getSettings().setAllowClear(true); field.getSettings().setCloseOnSelect(true); field.getSettings().setDropdownAutoWidth(true); + field.getSettings().setTheme(new Select2BootstrapTheme(false)); field.getSettings().setEscapeMarkup("function (m) {return m;}"); super.onInitialize();