Re: Using JavaScript during Ajax request

2018-09-28 Thread Chris Poulsen
igger 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 > Subject: Re: Using

RE: Using JavaScript during Ajax request

2018-09-27 Thread Davide Vecchi
: 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

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: