Hi. My problem is: i have some html file and a CustomLayout with some control elements. Inside an html there is a progressBar (not a component of Vaadin widget), that is being filled with time through javascript. If I open html without vaadin it’s ok and the bar is filling, but when I try to open vaadin app it never happens. How can it be fixed? Any help appreciated =)
You can’t use tags inside the html added to the CustomLayout which i think is what you’re trying to do. The only JS allowed in CustomLayouts is inside events so Test for example should work.
Two options now come to my head:
- Add your script tag to the head of the page using the modifyBootstrappage method and appending the element as it is done in this thread
https://vaadin.com/forum/#!/thread/1676923/3436649
with a meta tag - Integrate your html + JS like a JS component (
https://vaadin.com/wiki/-/wiki/Main/Integrating+a+JavaScript+component+
)