table.addColumn(new Column("id"));
table.addColumn(new Column("name"));
table.addColumn(new Column("studentHouse")).setDecorator(new Decorator() {
public String render(Object object, Context context) {
Student student = (Student) object;
if (student.getStudentHouse() != null) {
return student.getStudentHouse().getName();
} else {
return "";
}
}
});