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).
Comments
Post a Comment