Any additional thoughts regarding alternatives to the AddScript method for JavaScriptSupport? Should I open a new bug report to capture this issue and/or request removal of the AddScript deprecation?

--
David Taylor
http://www.extensiatech.com


On 9/26/2015 10:49 PM, David Taylor wrote:
Geoff,

Thanks for the 5.3/5.4 comparison links. Seeing non-trivial working examples definitely clarified a few points for me regarding the new approach. The modal dialog example is also very interesting in its own right.

Looking at the examples, it seems the new module approach would require us to develop some form of client-side JavaScript API to create the necessary Kendo UI configuration objects. Parametrizing all of the possible Kendo configuration options to work within the constraints of a static JavaScript library would not be an easy task. The Kendo configuration is very flexible and varies by component. Perhaps it would be possible using a multi-step configuration approach, but I imagine that wouldn't be very pretty.

Currently we generate the JavaScript code server side and emit it into the page using the deprecated addScript() method. This allows us to construct the Kendo JavaScript configuration taking into account the configuration of the associated Tapestry-Kendo wrapper components and data source information from our middle tier. The details of the JavaScript code being generated are rather dynamic so it does not lend itself to a static configuration approach.

Barring any additional approaches, it seems the addScript() method is currently the most workable option. Does anyone know why this method was marked as deprecated? Any chance it could be removed from the deprecation list?




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org

Reply via email to