I use v7.2.14. Based on the section 22.214.171.124. Main Window Layout. " The platform includes the standard main window implementation in /com/haulmont/cuba/web/app/mainwindow/mainwindow.xml XML descriptor and corresponding AppMainWindow controller class. The standard implementation can be extended in the project, like any other application screen."
But I obtain the error when I use the code of Example of an extending screen:
AppMainWindow and its mainwindow.xml descriptor are considered legacy. It is better to use main window based on com.haulmont.cuba.web.app.main.MainScreen. If you have to use the legacy main window, you should register it in the web-screens.xml of the WEB module. For instance, the extended AppMainWindow:
thank you for your answer. The documentation does not say that this is legacy. Treats it as current from v7.2.
My project created with V7.2.14 is not legacy. I was looking for a way to make a custom main window.
can you update the example from section 126.96.36.199 to customize a standard main window?
Then will be created controller and its descriptor. As controller uses @UiController annotation you don’t need to register it. Studio will add cuba.web.mainScreenId app property to the web-app.properties: