Detail
Detail
Enhancement
Detail
#27267
ListModelBuilder shall return a collection in getModel(...).
The tl:ListModelBuilder is a tl:ModelBuilder used for components that represent a set of objects (tl:TableComponent, tl:GridComponent, ...).
The method
Object getModel(Object businessModel, LayoutComponent aComponent);
in the ModelBuilder is to be called in the ListModelBuilder on
Collection<?> getModel(Object businessModel, LayoutComponent aComponent);
should be changed.
Code migration
- In tl:ListModelBuilder, the return type of getModel(Object, LayoutComponent) needs to be changed from Object to Collection<?> (or something more concrete).
- 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 test.