Integration of scientific JS frameworks

For a DB project with a Vaadin GUI we developed a helper library to integrate popular scientific JS frameworks.


http://treedb.info/JsIntegrationTest/
(WebGL enabled browser is necessary: Chrome & Firefox)
Project sources:
http://treedb.info/JsIntegrationTest/VAADIN/JsIntegrationTest.zip


This is the first version of this lib - we will improve and extend this library.


Technical background:

  • Modification of the @JavaScript/@StyleSheet annotation element at runtime to load the JS libs from a simple web servlet (this project) or from an other location. This trick should avoid storing these big JS libs at Java package level.
  • Filter for remapping JS-requests. Some libs are not ready for pre-loading all the needed libs. The master JS file must load the needed libs inside the code. But this way conflicts with the effective directory level access. To get running such JS code a filter for remapping is implemented.