Re: handling extern-asset Javascript

2006-11-29 Thread 西村 俊夫
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);

Re: handling extern-asset Javascript

2006-11-21 Thread andyhot
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