diff --git a/select2-parent/select2-examples/pom.xml b/select2-parent/select2-examples/pom.xml
index 92ed8599a8..603c6e088a 100755
--- a/select2-parent/select2-examples/pom.xml
+++ b/select2-parent/select2-examples/pom.xml
@@ -37,6 +37,7 @@
junit
junit
+ test
diff --git a/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java b/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java
index 4c26d3a614..9e1cedf058 100755
--- a/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java
+++ b/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java
@@ -20,7 +20,7 @@
import java.util.List;
import org.apache.wicket.Component;
-import org.apache.wicket.IResourceListener;
+import org.apache.wicket.IRequestListener;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.json.JSONException;
import org.apache.wicket.ajax.json.JSONWriter;
@@ -49,7 +49,7 @@
* type of model object
* @author igor
*/
-abstract class AbstractSelect2Choice extends AbstractTextComponent implements IResourceListener
+abstract class AbstractSelect2Choice extends AbstractTextComponent implements IRequestListener
{
private static final long serialVersionUID = 1L;
@@ -287,7 +287,7 @@ protected void onConfigure()
}
else if (isAjax())
{
- getSettings().getAjax().setUrl(urlFor(IResourceListener.INTERFACE, null));
+ getSettings().getAjax().setUrl(urlForListener(null));
}
}
@@ -391,7 +391,7 @@ public static void generateJSON(ChoiceProvider provider, OutputStream out
}
@Override
- public void onResourceRequested()
+ public void onRequest()
{
WebResponse webResponse = (WebResponse) getRequestCycle().getResponse();
webResponse.setContentType("application/json");