Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
ers" Sent: Wednesday, June 25, 2008 8:22 AM Subject: Re: T5 5.0.13 Javascript rendering at end of document - questions regd reason for adding js libraries at the end of the document: https://issues.apache.org/jira/browse/TAPESTRY-2364 you could write an own Flash component that adds

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread Kristian Marinkovic
;[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, June 25, 2008 7:51 AM Subject: Re: T5 5.0.13 Javascript rendering at end of document - questions regd > Actually, you can just put the JavaScript in a .js file and then include > it with @IncludeJavaScriptLibrary. T

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
7:51 AM Subject: Re: T5 5.0.13 Javascript rendering at end of document - questions regd Actually, you can just put the JavaScript in a .js file and then include it with @IncludeJavaScriptLibrary. Then add a call to RenderSupport#addScript in your page's afterRender handler that does the

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread Filip S. Adamsen
Actually, you can just put the JavaScript in a .js file and then include it with @IncludeJavaScriptLibrary. Then add a call to RenderSupport#addScript in your page's afterRender handler that does the setup you need. For this and more, check http://tapestry.apache.org/tapestry5/tapestry-core/g

Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
I take that back. Putting the flash player inline javascript in a method will not help since when it is called, the flash player external javascript will still not have been processed. So now I'm forced to statically or conditionally include the flash player javascript in my layout at the top.

T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
One more addition: When including the flash player in a page, the recommended technique is to put inline javascript that renders the flash player where the javascript appears in the page. The javascript relies on an external javascript file being included. If I do an asset injection of the Flas

T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
I have some questions regarding the decision to render Javascript at the end of the document: 1) What was the rationale/dirver for this? 2a) The upgrade notes say to use RenderSupport. Can anyone provide a short description of how to use RenderSupport to inject a simple javascript function? 2b