Hello everyone,
I’m using vaadin 14, and I would like use PUSH only in a view and not in the entire application.
this is my application:
@Route(value = “ViewOrdImpl”, layout = Layout.class)
@HtmlImport(“frontend://css/shared-styles.html”)
@PageTitle(“Order”)
@PUSH
public class ViewOrdImpl extends FormLayout implements ViewOrd,BeforeEnterObserver,AfterNavigationObserver{
but if I use PUSH in this manner I receive this error on the server
Caused by: com.vaadin.flow.server.InvalidRouteLayoutConfigurationException: Push annotation needs to be on the top parent layout ‘com.lib.vaadin.gvtheme.Layout’ not on ‘com.web.order.views.ViewOrdImpl’
Where Layout is a Class of my Theme