I think that embedding a “touch” solution in T5.4 is a bad idea. This has been
a fast-moving area, with lots of device-, and OS-version-, compatibility
issues. Witness all of iOS’s touch-scroll issues over various releases.
I think the best we could do is have a plugin if someone’s willing to
I have no problem adding javascript libs using RequireJS. On my web site 60% of
the end-users are using touch devices. To support then I have to handle some
touch and swipe events. I think Tapestry also need to do that in upcoming
versions.
From: Chris Poulsen [via Apache Tapestry Mailing List
On Fri, 02 Sep 2016 17:49:40 -0300, Qbyte Consulting
wrote:
I tried to add jquery mobile to my T5.4 project for swipe but it cracks
up. Same for angularjs.
Is there additional config required to add js libraries? Since I have
jquery set up already I figured I
I think the way to go is not to expose them / use them directly in onClick.
Instead you bind them in a module (either using t5/core/dom or jquery).
That way you are also keeping your global (script) scope much cleaner.
Lots of the tapestry framework client side code use this pattern.
--
Chris
Okay, after splitting my JS up into logical pieces and deploying them using
the module approach I can get jquery mobile to work. Perhaps the loading
times or sequence of script run was breaking things before?
Some trivial behaviours I added to a sidebar including a swipe out:
(function () {