add(new Label("pageTitle", new PropertyModel<String>(this, "pageTitle")));
add(ISIApplication.get().getHeaderPanel("headerPanel", parameters).setOutputMarkupId(true));
// If teacher, then add a sub header panel
if (ISISession.get().getUser().getRole().subsumes(Role.TEACHER)) {
add(new TeacherSubHeaderPanel("teacherSubHeader", parameters));
} else {
add(new WebMarkupContainer("teacherSubHeader").setVisible(false));
}
add(ISIApplication.get().getFooterPanel("footerPanel", parameters));