RE: Using JavaScript during Ajax request

2018-09-27 Thread Davide Vecchi
Thanks guys, that was it. Worked right away. Now my problem is solved, but I'm wondering how off-track I was when I thought that the Trigger component was the way to go about this. Is Trigger intended for different situations, or is it just another possible appropriate way of solving this probl

Re: Using JavaScript during Ajax request

2018-09-27 Thread JumpStart
An example: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/modal/1 > On 27 Sep 2018, at 7:06 pm, Nathan Quirynen > wrote: > > When your request is an ajax call, you can use the follo

Re: Using JavaScript during Ajax request

2018-09-27 Thread Nathan Quirynen
When your request is an ajax call, you can use the following construct to use the JavaScriptSupport service: ajaxResponseRenderer.addCallback(new JavaScriptCallback() {             @Override             public void run(JavaScriptSupport javascriptSupport) {                 // Your code here   

Using JavaScript during Ajax request

2018-09-27 Thread Davide Vecchi
Hello everybody, I am having exactly the same problem described in the thread linked below, that is the exception "No object of type org.apache.tapestry5.services.javascript.JavaScriptSupport is available from the Environment" that occurs only if the event handler is handling an Ajax request: