I have template
...
<div id="layout"></div>
<slot></slot>
...
Java source
@Tag("main-view")
@Theme(Lumo.class)
@HtmlImport("frontend://styles/view/main/MainView.html")
@Viewport(VIEWPORT)
public class MainView extends AbstractView implements RouterLayout, BeforeEnterObserver {
@Id("layout")
private Layout layout;
...
}
Layout don’t have noargs constructor only Layout(String).
When I try run it I have error “Make sure the class has a public no-arg constructor”
How fix it?