Re: jquery jgrowl params not working

2013-06-27 Thread D.R.
Ciao Thiago, yes, happy on the one hand as i was able to figure out where the problem is and how to fix it. But sad on the other hand that my app now depends on custom changes of a lib. I did a post on the googlegroup of the tapestry-jquery guys. Manu wants me to make a fork and a pull request. S

Re: jquery jgrowl params not working

2013-06-26 Thread Thiago H de Paula Figueiredo
On Wed, 26 Jun 2013 17:17:46 -0300, D.R. 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

Re: jquery jgrowl params not working

2013-06-26 Thread Thiago H de Paula Figueiredo
On Wed, 26 Jun 2013 16:35:23 -0300, D.R. wrote: Hi, Hi! "beforeClose" : function(e,m) {alert('About to close this notification!');}, so without the quotes, but alert is not called. I've never used JGrowl, so I cannot answer about that. The resulting JSON object does seem correct. Have y

Re: jquery jgrowl params not working

2013-06-26 Thread D.R.
ok, i've figured out the following: on http://stanlemon.net/2013/03/16/jgrowl-1-2-11/ they write: updated to jGrowl today that fixes an issue when triggering the shutdown method so i did download the latest version of jgrowl and hardcore replaced the jquery.jgrowl.js in the file the version 2.1.12

Re: jquery jgrowl params not working

2013-06-26 Thread D.R.
Hi, i already have played with JSONLiteral, but had no luck. If i do a: retour.put("beforeClose", new JSONLiteral("function(e,m) {alert('About to close this notification!');}")); it renders: "jGrowlAlertManager" : [ { "dismissURL" : "/index.layout.jgrowl:dismiss", "jgrowl" : { "position" : "cente

Re: jquery jgrowl params not working

2013-06-26 Thread Thiago H de Paula Figueiredo
On Wed, 26 Jun 2013 14:51:29 -0300, D.R. wrote: whoops, usually i declare my components in the page class, but in this project i wanted to write less code. I've checked the docs about expansions and this topic is now clear to me, thank you Thiago for your answer and your hint. :) You was

Re: jquery jgrowl params not working

2013-06-26 Thread D.R.
whoops, usually i declare my components in the page class, but in this project i wanted to write less code. I've checked the docs about expansions and this topic is now clear to me, thank you Thiago for your answer and your hint. You was right, i don't get this error anymore, but it still don't w

Re: jquery jgrowl params not working

2013-06-25 Thread Thiago H de Paula Figueiredo
On Tue, 25 Jun 2013 16:19:50 -0300, D.R. wrote: Hi @all, Hi! i want to use jgrowl for the alertmanager, in my .tml i have: Never, never, NEVER ever use expansions when passing values to parameters. Try (without the ${}) and the problem will probably go away. -- Thiago H. de Paula

jquery jgrowl params not working

2013-06-25 Thread D.R.
Hi @all, i want to use jgrowl for the alertmanager, in my .tml i have: and in my .java: public JSONObject getJgrowlParams() { JSONObject retour = new JSONObject(); retour.put("position", "center"); retour.put("header", "Error"); retour.put("beforeClose", "function