That will work, it's the preferred way. Lurking in that detail is an abstraction about: 1) whether it is on the classpath: or in the context: and 2) what version it is. You can use a different version of Prototype/Scriptaculous if you wish and redirect Tapestry, by overriding the tapestry.scriptaculous symbol, to use your version not its internal version.
On Tue, Mar 17, 2009 at 12:27 PM, Felix Gonschorek <fe...@gg-media.biz> wrote: > today i wanted to solve a similar problem: include the prototype.js in a > page that has no prototype included by tapestry, because i did not use any > js-related components. > > i included the prototype js library with a page annotation: > > @IncludeJavaScriptLibrary("${tapestry.scriptaculous}/prototype.js") > > if found the ${tapestry.scriptaculous} variable in the tapestry sources. > > > Angelo Chen schrieb: >> >> Hi, >> >> I need to refer to prototype.js in a html, here is what I did: >> <script type="text/javascript" >> src="${asset:context:/scriptaculous/prototype.js}" /> >> but got exception like this: >> Could not convert 'asset:context:/scriptaculous/prototype.js' into a >> component parameter binding: Unable to locate asset >> 'context:scriptaculous/prototype.js' (the file does not exist). >> >> any idea? thanks > > -- > Felix Gonschorek > GG-Media > > Kirchstr. 18 > 69115 Heidelberg > > Tel: +49 6221 890 168-0 > Fax: +49 6221 890 168-1 > Mobil: +49 176 2234 1338 > > fe...@gg-media.biz > http://www.gg-media.biz > > Vertretungsberechtigte Gesellschafter: > Felix Gonschorek & Jochen Greiner > > Umsatzsteuer-Identifikationsnummer > gemäß § 27a Umsatzsteuergesetz: > DE232906440 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org