Re: requirejs question

2018-03-24 Thread Ilya Obshadko
You’ll have to re-write it. jQuery will be available all right, alongside with some other built-in JS modules. Converting a big application to AMD is a bit painful, but definitely worth it in the end. That’s an example of a typical small Tapestry script (with usage of Google Analytics as a bonus):

Re: requirejs question

2018-03-24 Thread Dmitry Gusev
Hi Erich, one example of using jQuery in inline scripts can be: require(['jquery'], function($) { }); I would suggest to replace inline scripts with JavaScript modules, i.e. one per component/page: http://tapestry.apache.org/javascript-modules.html

requirejs question

2018-03-24 Thread Erich Gormann
Dear all, after migrating to tapestry 5.4.3 it is not possible anymore, to use inlines scripts in tml files. In principle I understood the idea and usgage of requirejs, but I'm confused, because they seem to be several ways to achieve certain goals for individual solutions. So I try to giv