示例#1
0
 @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() + "'})");
 }
示例#2
0
 @Override
 protected JSONObject getProperties() throws JSONException {
   JSONObject properties = super.getProperties();
   properties.put("dataUrl", behavior.getCallbackUrl());
   return properties;
 }