public abstract class JsonResourceReference<T>
extends org.apache.wicket.request.resource.ResourceReference
mountResource(CATEGORIES_JSON, new JsonResourceReference("categories") {
private static final long serialVersionUID = 1L;
protected ChoiceProvider getChoiceProvider() {
return CategoriesTextChoiceProvider.getInstance();
}
});
and then on component you add
Select2MultiChoice c = new Select2MultiChoice("categories", new PropertyModel>(searchBean, "translations"), CategoriesTextChoiceProvider.getInstance());
c.getSettings().setStateless(true);
c.getSettings().setMountPath(Application.CATEGORIES_JSON);
| Constructor and Description |
|---|
JsonResourceReference(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ChoiceProvider<T> |
getChoiceProvider()
The choice provider.
|
org.apache.wicket.request.resource.IResource |
getResource() |
public JsonResourceReference(String name)
public org.apache.wicket.request.resource.IResource getResource()
getResource in class org.apache.wicket.request.resource.ResourceReferenceprotected abstract ChoiceProvider<T> getChoiceProvider()
Copyright © 2017. All rights reserved.