cuba-platform / documentation

CUBA Platform Documentation
https://www.cuba-platform.com
Creative Commons Attribution 4.0 International
25 stars 45 forks source link

Before use routeGenerator, screen should register route first #771

Open BryanYin opened 3 years ago

BryanYin commented 3 years ago

Environment

Description of the bug or enhancement

In this section, we need to mention for custom screens, developer should use @Route to register screen route, otherwise, an Exception will throw:

Caused by: java.lang.IllegalStateException: Unable to generate route for screen 'magic_VideoPlayerScreen' - no registered route found
    at com.haulmont.cuba.web.sys.WebUrlRouting$RouteGeneratorImpl.getRoute(WebUrlRouting.java:439) ~[cuba-web-7.2.10.jar:7.2.10]
    at com.haulmont.cuba.web.sys.WebUrlRouting$RouteGeneratorImpl.getRoute(WebUrlRouting.java:483) ~[cuba-web-7.2.10.jar:7.2.10]