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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -