Javascript.getCurrent().execute modify DOM


I am trying to modify inner content via JavaScript.getCurrent().execute(…); However, I cannot make this running. Is it forbidden or am I am doing something wrong? I am calling this method when comboBox value has changed.



I don’t think there should be anything preventing it. Is your application inside an IFrame perhaps?


What exactly are you trying to achieve? Can you somehow show the code?

Here’s one example on how to inject head elements via JavaScript in Vaadin:

See the full sample on