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