Hello, I’m migrate to the Vaadin 10 from Vaadin 8, it was rather smooth upgrade, but I got one problem.
Previously I’m integrate Disqus in my app by using CustomLayout
, here is the code:
CustomLayout customLayout = null;
try (InputStream inputStream = disqusResource.getInputStream()) {
customLayout = new CustomLayout(inputStream);
customLayout.setSizeFull();
} catch (IOException e) {
logger.error("Error", e);
Notification.show(
getMessageLocalized("notification-error"),
Notification.Type.ERROR_MESSAGE
);
}
As far as I understand it was replaced in Vaadin 10 to HTML
, so my code is changed to:
Html disqusComponent = new Html(disqusResource.getInputStream());
But the problem is right now Disqus is not displaying anymore.
Full code is here https://github.com/Hronom/docker-json-log-converter
Also got problem, that new HTML
component not supports only exactly one root element.
So how integrate html and js in new version of Vaadin 10 ?