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

2016-02-05 Thread Carlos Montero Canabal
Hi, Your js file you required is a js module??? I use many times require in a callback in tapestry 5.4.0 and it works perfect. Regards Carlos Montero Enviado desde mi iPhone > El 5 feb 2016, a las 2:15, g escribió: > > hello geoff, > > thanks for your feedback, and indeed:

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

2016-02-05 Thread danny de cock
yes, they are ajax calls... I will produce a stripped-down version of the project that illustrates the problem... when adding a submit button that executes the same javascript script or when called from afterRender, it works, when called through the onAjaxEvent call, it does not... will upload

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

2016-02-05 Thread JumpStart
Crazy thought, but have you confirmed with a web inspector that your request is XHR? > On 5 Feb 2016, at 6:59 PM, g wrote: > > yes, the js file is a module and is found in META-INF/modules. > > the file looks as follows: > define(["jquery"], function($) { >var privateFunc =

[5.4] request from javascript to Tapestry event

2016-02-05 Thread Nathan Quirynen
Hi, I have finally started the process of updating to 5.4. Some components have an initializer javascript where an eventlink url is passed as a parameter to be used as the url for a request from javascript to a Tapestry event. To handle the response (zone updates, scripts, ..) I added in the

Re: [5.4] request from javascript to Tapestry event

2016-02-05 Thread Chris Poulsen
Have a look at http://tapestry.apache.org/current/coffeescript/ajax.html -- Chris On Fri, Feb 5, 2016 at 2:54 PM, Nathan Quirynen wrote: > Hi, > > I have finally started the process of updating to 5.4. > Some components have an initializer javascript where an

Re: [5.4] request from javascript to Tapestry event

2016-02-05 Thread Chris Poulsen
Faking a "click" on an invisible async eventlink could also be a very simple way to get this working without having to mock around with much javascript. -- Chris On Fri, Feb 5, 2016 at 3:04 PM, Chris Poulsen wrote: > Have a look at

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

2016-02-05 Thread g
yes, the js file is a module and is found in META-INF/modules. the file looks as follows: define(["jquery"], function($) { var privateFunc = function(args) { alert('bingo! it works! =='); var arg=args.arg; console.log('arg',arg); }; return { publicFunc: