How can I integrate Vaadin with javascript frameworks?

Hi,

I know I can execute javascript lines using the Label component in Vaadin but how I can integrate an other javascript based framework which needs lots of external javascript resources?

I tried to use the CustomLayout with javascript links in the template file but system did not load the javascript resources therefore the Graph framework (jqplot) was not able to render the page correctly. (I got blank screen although the solution works at local side when I try to use it without using Vaadin.)

What is the best and working solution to integrate other javascript based frameworks into Vaadin?

Thanks a lot,

Ferenc

The simplest way to include external java scripts is to create your own ApplicationServlet and override the writeAjaxPageHtmlVaadinScripts method.

Depending on the level of complexity of the integration, you might find it more appropriate to create a GWT Widget that includes the javascript functionality, then create a Vaadin Component for the GWT Widget.

Cheers,

Charles.