Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Html section without use BrowserFrame
Hello,
I wish to display a Html page or div in my page. I don"t want to use iframe unless it can be displayed without scrollbars and take the all size of window.
There is also a way to have an embedded vaadin div in a pure html page, but I will loose the advantages of a java application, with vaadinServlet , Spring security etc...
So, there is a way to have the result like image below? Maybe to implement the html section like a part of the theme?
Thanks
Hi,
have you looked at the "Embedding UIs in Web Pages" part of the Book of Vaadin?
https://vaadin.com/docs/-/part/framework/advanced/advanced-embedding.html
There's an example how you can embed a Vaadin application in your HTML without having the content in an iframe (there's still an invisible iframe required by GWT, but that shouldn't affect layouting, scrollbars and such).
You can also inject HTML snippets to your application in a Label component (with the proper ContentMode set), sometimes that's enough.
Best regards,
Olli
Thank you. It's for sure de solution. Is it working with Spring Boot ? Because in this case Spring is the heart/engine of the application , it's managing everything and vaadin is only annexed .
Sure. Take a look at this Polymer Spring Boot project by Vaadin's Marcus H: https://github.com/vaadin-marcus/polymer-spring-boot
That project has nothing to do with server-side Java Vaadin Framework, but you could add a Java Vaadin UI in there and embed that Java UI in the HTML like in that Book of Vaadin example.