On Mon, 20 Sep 2010 14:16:13 -0300, Michael Taylor <[email protected]> wrote:

 Greetings Tapestry Users,

Hi!

I’m wondering what is the best way for a component class to import an
externally hosted javscript library?

I haven't had the time to play with Tapestry 5.2 yet (sad!), but you can get a JavaScriptSupport instance from the environment and then use the importJavaScriptLibrary(String libraryURL) to import an arbitrary JavaScript file URL.

@Environmental
private JavaScriptSupport javaScriptSupport;

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to