minor
minor
enhancement
minor
#27267
ListModelBuilder shall return a collection in getModel(...).
The tl:ListModelBuilder is a tl:ModelBuilder used for components that represent a collection of objects (tl:TableComponent, tl:GridComponent, ...).
The method
Object getModel(Object businessModel, LayoutComponent aComponent);
in the ModelBuilder should be implemented in the ListModelBuilder as
Collection<?> getModel(Object businessModel, LayoutComponent aComponent);
in the ListModelBuilder.
Code Migration
- In `tl:ListModelBuilder`, the return type of `getModel(Object, LayoutComponent) ` must be changed from `Object ` to `Collection<?> ` (or something more specific).
- In tl:TableComponent, ListModelBuilders must now be configured. If a tl:ModelBuilder is configured that is not a ListModelBuilder, the login will fail with a ClassCastException.
Test
Refactoring. No additional tests.