Re: Using JavaScript during Ajax request

2018-09-28 Thread Chris Poulsen
e this using Trigger but it wouldn't have been the right way ? > > In any case, as usual I solved my problem by asking here, thanks again. > > > -Original Message- > From: JumpStart > Sent: Thursday, September 27, 2018 14:21 > To: Tapestry users >

RE: Using JavaScript during Ajax request

2018-09-27 Thread Davide Vecchi
ubject: Re: Using JavaScript during Ajax request An example: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/modal/1 <http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/modal/1> > On 27 Sep 2018, at 7:06 pm, Nathan Quirynen > wrote:

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: