Default view

The `defaultView() element is used to select which of views should be used by default for a given collection. Without any hint the collection is shown collapsed (to save real estate and reduce load time).

For example:

import lombok.Getter;
import lombok.Setter;


public class BusRoute {

    @CollectionLayout( defaultView="table" )    (1)
    @Getter @Setter
    private SortedSet<BusStop> stops = ...

}
1 renders the collection as a table view.

The Web UI (Wicket viewer) allows additional views to be configured to render collections of objects, eg Tabular Download ("excel") and Fullcalendar ("fullcalendar") extensions. This attribute can be used to select any of these alternative views instead.