UserCriteriaBuilder c = new UserCriteriaBuilder();
c.setRole(Role.STUDENT);
c.setPeriod(ISISession.get().getCurrentPeriodModel());
// add the students to the table
table.add(new ListView<User>("student", new UserListModel(c)) {
private static final long serialVersionUID = 1L;
// for each student add the following fields
@Override
protected void populateItem(ListItem<User> userItem) {