Thank you very much guys, I will give this a go on Monday morning and let you know the outcome.

Howard Lewis Ship wrote:
That might work as well, but there's only built-in support for context
and classpath assets.

On Fri, Sep 5, 2008 at 9:25 AM, Hugo Palma <[EMAIL PROTECTED]> wrote:
Can't an asset be created dynamically ?
Something like:

AssetFactory.createAsset(new URIResource(myURL))

Never tried it but looks like it should work.

Howard Lewis Ship wrote:
It may be kind of awkward but you can provide your own implementation
of Asset; it just has to implement the toClientURL() method (and dummy
implementations of the other methods specified in the interface).

On Fri, Sep 5, 2008 at 8:37 AM, Cliff Willsher <[EMAIL PROTECTED]> wrote:

Hi,

I'm using Tapestry 5.0.14 and trying to generate a script link where the
source of the javascript is obtained via a cgi.

e.g.
 <script language="javascript"
src="http://some.domain/some.cgi?key=onBsgdeFET";></script>

One complication of this is that the "key" query parameter value is
dynamic.
Also I must place this script tag after prototype.js has been included.

I know that the @IncludeJavaScriptLibrary annotation will place the
script
tag in the correct place but how would I make that dynamic?

I know that RenderSupport.addScriptLink() will place the tag in the
correct
place but that requires an Asset object.

I would be very grateful if anyone knows how to get this kind of script
tag
at the end of the page.

TIA

Cliff



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]










---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to