cuba-platform / documentation

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

Fix example of programmatic Timer creation #615

Closed glebfox closed 4 years ago

glebfox commented 4 years ago

Environment

Description of the bug or enhancement

The following example of programmatic Timer creation is no longer valid:

Timer helloTimer = uiComponents.create(Timer.NAME);

Starting from v7.0 the Facet bean must be used:

@Inject
private Facets facets;
...
Timer timer = facets.create(Timer.class);