How can I do this? If i try to put a function it returns surrounded with ""
for example tapestry would generate

    {
      "id" : "textfield_3",
      "paramName" : "t:input",
      "url" :
"http://localhost:8080/assets.assetdetails.componentdata.textfield_0:autocomplete";,
      "options" : {
        "select" : "function (event, ui) {alert('This is the call back
function');}"
      }
    }

So how can I write  "function (event, ui) {alert('This is the call back
function');}" with out ""
here is my Java Code

    public JSONObject getAutoParams() {
        return new JSONObject("select", "function (event, ui) {alert('This
is the call back function');}");
    }



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Passing-a-javascript-function-in-JSONArray-or-JSONObject-tp5717095.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to