@Override
public void populateItem(Item<ICellPopulator<T>> cellItem,
String componentId, IModel<T> rowModel) {
ResourceTender resourceTender = rowModel.getObject();
User applicant = resourceTender.getUser();
cellItem.add(new Label(componentId, applicant == null ? "" : applicant.getDisplayName()));
}
});
// Owner reputation
columns.add(new AbstractColumn<T, String>(new ResourceModel(MKEY_TENDER_APPLICANT_REPUTATION)) {
private static final long serialVersionUID = 1L;
@Override
public void populateItem(Item<ICellPopulator<T>> cellItem,
String componentId, IModel<T> rowModel) {
ResourceTender resourceTender = rowModel.getObject();
User applicant = resourceTender.getUser();
BigDecimal reputation = reputationReader.getUserReputation(applicant);
cellItem.add(new Label(componentId, reputation == null ? "???" : reputation.toString()));
}
});