Modifying the javascript stack of tapestry5-jquery

79 views
Skip to first unread message

Erich Gormann

unread,
Apr 10, 2014, 10:59:56 AM4/10/14
to tapestry...@googlegroups.com
Hi there,
I'am new to this group and enjoy to be here and share the Kawwa experience with you.
As employee of Atos Worldline I'am currently developing a web application using the Kawwa kompoenents and tapestry5-jquery. Now I'am facing the problem, that we have to add certain javascripts to  our application and remove some of the scripts which are automatically provided by tapestry5-jquery.
As if that were not enough the new javacscript files have to be occur at certain places / in a certain order in the HTML head section.
Is there any way, to manage this issue with the tapestry5-jquery API, or do have to do some dirty tricks?

Thanks a lot in advance for your answers.

Regards Eric

Emmanuel DEMEY

unread,
Apr 11, 2014, 3:17:32 AM4/11/14
to tapestry...@googlegroups.com
Hi Erich

The only way to override the jQuery JavaScript Stack i sto override the jQueryJavaScriptStack java class in your project : https://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/services/javascript/JQueryJavaScriptStack.java

And add/order your JS files in the getJavaScriptLibrairies method. 

Manu

And in the jQueryJsStack variabl

Erich Gormann

unread,
Apr 11, 2014, 4:28:30 AM4/11/14
to tapestry...@googlegroups.com
Hi Manu,

yes, it seems to be the only way. I have to understand the API in detail first, because we have some more scripts than jquery only to integrate.
I wonder why the tapestry.js is always at the top of the script stack even after integrating tapestry5-jquery. Comes it from Tapestry it self?

Thanks for your help.

Eric

Emmanuel DEMEY

unread,
Apr 11, 2014, 8:16:52 AM4/11/14
to tapestry...@googlegroups.com
The tapestry.js file comming from Tapestry5-jQuery is normally not the same as the one proposed by Tapestry. Just the name is the same. 
If you have exactly the same file, you use maybe jQuery AND Prototype at the same time in our application. in this case, you still use the tapestry.js of Tapestry. 
To check if you are using the Tapestry version, you can have a look to the javascript files loaded in your page, and if find an prototype.js, you are using the Tapestry version. 
Manu
Reply all
Reply to author
Forward
0 new messages