@Override public void onComponentTag(ComponentTag tag) { // add onclick handler to the browser // if clicked in the browser, the function // click.response(AjaxRequestTarget target) is called on the server side tag.put("ondblclick", "Wicket.Ajax.get({'u':'" + click.getCallbackUrl() + "'})"); tag.put("onclick", "Wicket.Ajax.get({'u':'" + click.getCallbackUrl() + "'})"); }
@Override protected JSONObject getProperties() throws JSONException { JSONObject properties = super.getProperties(); properties.put("dataUrl", behavior.getCallbackUrl()); return properties; }