Length of the field is not taken into account in the view

Previously I remember that in CUBA the length of a field was automatically respected in the view of a screen, but now I see that it is not taken into account. Is this behavior normal?

Table
imagen

Screen
imagen

Exception
imagen

Regards,

Nelson F.

Hello,

Thank you for reporting a problem! I created an issue: Haulmont/jmix-ui#733.

For now, you can set max length in the screen controller:

@Autowired
private TextField<String> nameField;

@Subscribe
public void onInit(InitEvent event) {
    nameField.setMaxLength(2);
}