public HomePage(int weeks) {
TimePeriod tp = LargeView.createMonthViewDates();
if (weeks != 0) {
tp = LargeView.createWeeksViewDates(weeks);
}
add(new LargeView("large", tp, new PersistentRandomTestEventProvider()) {
private static final long serialVersionUID = 1L;
@Override
protected Page createMoreDetailPage(IModel<DateMidnight> model, IModel<List<IEvent>> eventsModel) {
Page page = super.createMoreDetailPage(model, eventsModel);