I have a cruid editor which uses a FormLayout for it’s BinderCrudEditor. I have a field that I want to bind to a TextArea, but it does not show up at all.
The following does not work:
private static BinderCrudEditor<DashboardItem> createForm() {
TextField name = new TextField("Name");
TextArea description = new TextArea("Description");
description.setWidth("300px");
description.setPlaceholder("description");
TextField url = new TextField("URL");
FormLayout form = new FormLayout(name, description, url);
BeanValidationBinder<DashboardItem> binder = new BeanValidationBinder<>(DashboardItem.class);
binder.bind(name, "name");
binder.bind(description, "description");
binder.bind(url, "url");
return new BinderCrudEditor<DashboardItem>(binder, form);
}
But if I change that TextArea to a TextField it shows up as expected. Is there anything I’m missing?