How to integrate javascript into vaadin (e.g. OpenStreetMap)?

Is it possible to create javascript elements like OpenStreetMapor jQueryinside a vaadin application?

Because vaadinwebsites are created by programming in java and letting the compiler auto-create to DOMand JavaScriptfrom it?

So, is it even possible?

+4
source share
3 answers

You can create such an integration with AbstractJavaScriptComponent

, @JavaScript, JS-. , DOM ( <div> ). , ( , , ), ( JSON).

Wiki ,

+3

, , :

1)

- html, Content Mode html.

https://vaadin.com/book/-/page/components.label.html

2)

If you just want to execute some javascript code after the ui event, you can call Javascript.getCurrent (). execute (javascriptCode).

https://vaadin.com/book/vaadin7/-/page/advanced.javascript.html

Please note that if you are trying to make some reusable components, this is the wrong answer

0
source

All Articles