Hi forum: When I send a JSONObject or JSONArray without JSONLiteral, my page shows a "[OK] Alert", the problem is when I send a JSONLiteral, the test1 function never is executed, I suppose it's a bug, anyone can help me? This is my test code:
Test.tml: <code> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> </html> </code> Test.java: <code> @Import(library="context:js/Test.js") public class Test { @Inject private JavaScriptSupport jsSupport; void setupRender() { JSONObject jobj = new JSONObject(); jobj.put("strkey", new JSONLiteral("strvalue")); jsSupport.addInitializerCall("test1", jobj); } } </code> Test.js: <code> Tapestry.Initializer.test1 = function(params) { alert("ok"); } </code> Thanks in advance ;) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-JSONLiteral-Bug-tp4584187p4584187.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