I made a component for this purpose.
Here are the lines of the source code.
protected void renderComponent(IMarkupWrite writer, IRequestCycle
cycle) {
if (!cycle.isRewinding()) {
PageRenderSupport pageRenderSupport =
TapestryUtils.getPageRenderSupport(cycle,this);
What's wrong with including
script type=text/javascript language=javascript
src=file://usr/local/lib/local.js/script
directly into the tapestry template?
Regarding PageRenderSupport.addExternalScript(), I believe you could call
it from a page or component passing a:
new