Categories
apache code Java programming Web

Simple Loading Spinner Tapestry 5 Mixin w/ spin.js

A simple loading spinner mixin for Apache Tapestry 5

Sharing a small snippet on creating a loading spinner in a Tapestry 5.3+ Mixin, using spin.js.
It creates a convenient way to add spinners to your long-loading-times ajax zone updates, with all the code hidden away from the template .tml and page class object.
Sorry I can’t show a working example, that would entail running a Tapestry application server.
But it’s very straightforward, just grab the spin.min.js and the rest falls into place (it also depends on jQuery).

Leave a Reply

Your email address will not be published. Required fields are marked *