You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Label 'Username' was not associated with a component. Labels should not be used for loose text on the page. Consider alternatives like Text, Paragraph, Span or Div. See the JavaDocs and Deprecation Warning for more Information.
The reason is that FormLayout still uses Label:
public FormItem addFormItem(Component field, String label) {
return addFormItem(field, new Label(label));
}
Expected outcome
FormLayout should not use deprecated classes.
Minimal reproducible example
FormLayout loginForm = new FormLayout();
loginForm.setResponsiveSteps(new FormLayout.ResponsiveStep("0", 1));
TextField username = new TextField();
FormLayout.FormItem formItem = loginForm.addFormItem(this.username, "Username");
Steps to reproduce
Add the snipped above an run the app
Environment
Vaadin version(s): 24.1.1
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered:
Description
I see a lot of these messages:
The reason is that FormLayout still uses Label:
Expected outcome
FormLayout should not use deprecated classes.
Minimal reproducible example
FormLayout loginForm = new FormLayout();
loginForm.setResponsiveSteps(new FormLayout.ResponsiveStep("0", 1));
Steps to reproduce
Add the snipped above an run the app
Environment
Vaadin version(s): 24.1.1
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: