Small issue with componentsFactory.createComponent code in documentation

In a bunch of places you have code like:


PasswordField passwordField = componentsFactory.createComponent(PasswordField.NAME);

and


PasswordField passwordField = componentsFactory.createComponent(PasswordField.NAME);

This doesn’t compile. It should either be:


PasswordField passwordField = (PasswordField)componentsFactory.createComponent(PasswordField.NAME);

or


PasswordField passwordField = componentsFactory.createComponent(PasswordField.class);

Hi Jonathan,

Thank you for the notice. We have created a YouTrack issue and will update the documentation soon, see the link on the right.

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PLD-379