java - How to integrate javascript in vaadin (eg OpenStreetMap)? -


is possible create javascript elements openstreetmap or jquery inside vaadin application?

because vaadin websites created programming in java , letting compiler autocreate dom , javascript out of it?

so, possible @ all?

you can create such integration abstractjavascriptcomponent

the basic idea here subclass class, annotate @javascript pull in needed js libs. write @ least global function, sets lib in dom (you have <div> @ disposal). component can hold state, server side can call defined functions on client (while sending e.g. state) , client can call server functions (params passed json).

the wiki has example how include such component


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -