I have a component that relies on an external javascript library, and I've tried to include it using @Import like this: @Import(library={"context:js/somefile.js", "http://maps.google.com/maps/api/js?sensor=false"}, stylesheet="context:css/style.css") But I get the error: Unknown prefix for asset path 'http://maps.google.com/maps/api/js?sensor=false'
I guessed it was trying to use "http:" as one of the binding constant prefixes, so I prepended "literal:" so it looks like this: @Import(library={"context:js/somefile.js", "literal:http://maps.google.com/maps/api/js?sensor=false"}, stylesheet="context:style.css") But I still get the same error. The solution I have right now is to use JavaScriptSupport to include it: @Inject private JavaScriptSupport renderSupport; void setupRender() { renderSupport.importJavaScriptLibrary("http://maps.google.com/maps/api/js?sensor=false"); } Am I missing something? Is there a way to include it using the @Import annotation so that I don't have to inject JavaScriptSupport for this one library? Thanks, Donny --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org