With <t:jquery.Draggable /> you can specify the JSONObject params like so: t:params="params" In Java I have code like this (snippet):
public JSONObject getParams() { JSONObject options = new JSONObject(); ...... ...... options.put("start", "function() {$(this).hide();}"); return options; } This "start" option does not seem to work as a String. I have tried JSONLiteral but it failed also. I got a Ajax error, something like Communication with the server failed, null. I also tried in the tml -- t:params="literal:{start: function() {$(this).hide();}}" But it does not work. In both cases above I tried with arguments: function(event, ui) {}, but it did not work. How can I declare this function ?? Thanks. Reply, Re