3.6.1. Screens (Legacy)

For the new API available since v.7.0, see Screens.

A generic UI screen is defined by an XML-descriptor and a controller class. The descriptor has a link to the controller class.

In order to be able to invoke the screen from the main menu or from Java code (e.g. from controller of a different screen) the XML-descriptor should be registered in the project’s screens.xml file. The default screen that should be opened after login can be set using the cuba.web.defaultScreenId application property.

The main menu of an application is generated on the basis of menu.xml files.