I created new service using Studio.
I created screen using Studio, added button and controller for click on that button.
I am now trying to use my service.
As it is shown on https://www.cuba-platform.com/system/files/CUBA-Hands-on-Lab.pdf, page 93 I added field with @Inject property and try to use it
But I get error message:
…cuba-projects/test2/modules/web/src/com/company/test2/web/screens/Screen.java:17: error: cannot find symbol
protected NewService newService;
symbol: class NewService
location: class Screen
FAILURE: Build failed with an exception.
What I am doing wrong?
PS. I don’t understand how example from page 93 might work as we did not import namespace where service is located.