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

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

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -