Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread Basile Chandesris
http://callbackhell.com/ Le 06/02/2016 23:13, danny de cock a écrit : the atmos library works fine with the chatdemo page and the table in index.java gets updated correctly... it seems to me that the jss.require(..).invoke(..).with(..) is not executed correctly... I think the jss that is trigger

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread Chris Poulsen
At work we have a product that push javascript commands back to the client in ajax calls using this technique (T5.4) and it has newer been problematic. Let me try to explain why I guess the library should be the first place to look: I'm guessing that the atmosphere lib plugs into the tapestry pro

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread danny de cock
the atmos library works fine with the chatdemo page and the table in index.java gets updated correctly... it seems to me that the jss.require(..).invoke(..).with(..) is not executed correctly... I think the jss that is triggered through the "new JavaScriptCallback().run(JavaScriptSupport jss)" does

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread Chris Poulsen
Your "onStockPriceReceived2" seems to be triggered from some atmos library callback. As your AddPoint button clearly works, then I think it is a stretch to say that the callback stuff does not work - It does not work when using the atmos library, but does when called the "normal" way. You should

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread g
hello, I stripped down the demo to make it easy to test and illustrate the issue :) you can download a working project from http://gwiki.be/tapestry/tapestry-atmosphere-cometd-demo.5.4.0.simplified.tgz after unpacking the tar file and executing `mvn jetty:run`, the page http://localhost:8080/ wi