On Wed, 26 Jun 2013 17:17:46 -0300, D.R. <d.re...@googlemail.com> wrote:

Then i just rebooted my server and it works with
retour.put("beforeClose", new JSONLiteral("function(e,m) {alert('About
to close this notification!');}"));

That's a correct way of doing that.

but not with:
retour.put("beforeClose", "function(e,m) {alert('About to close this
notification!');}");

That's a wrong way of doing that, so it's expected to not work.

so JSONLiteral seems the way to go, also my custom function is called
when i do a: retour.put("beforeClose", new JSONLiteral("mybeforeclose"));

That's a corret way of doing that. I'd say it's the correct one. I guess, in this case, you don't need JSONLiteral, as you're not including a function.

But what shall i do now?

Be happy because it's working? :)

--
Thiago H. de Paula Figueiredo

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

Reply via email to