Skip to content

Commit

Permalink
[select2] wicket-8.x should be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
solomax committed Jul 17, 2016
1 parent c80bc39 commit 426ef19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions select2-parent/select2-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -49,7 +49,7 @@
* type of model object
* @author igor
*/
abstract class AbstractSelect2Choice<T, M> extends AbstractTextComponent<M> implements IResourceListener
abstract class AbstractSelect2Choice<T, M> extends AbstractTextComponent<M> implements IRequestListener
{
private static final long serialVersionUID = 1L;

Expand Down Expand Up @@ -287,7 +287,7 @@ protected void onConfigure()
}
else if (isAjax())
{
getSettings().getAjax().setUrl(urlFor(IResourceListener.INTERFACE, null));
getSettings().getAjax().setUrl(urlForListener(null));
}
}

Expand Down Expand Up @@ -391,7 +391,7 @@ public static <T> void generateJSON(ChoiceProvider<T> provider, OutputStream out
}

@Override
public void onResourceRequested()
public void onRequest()
{
WebResponse webResponse = (WebResponse) getRequestCycle().getResponse();
webResponse.setContentType("application/json");
Expand Down

0 comments on commit 426ef19

Please sign in to comment.