final Label label = new Label(componentId, new Model<String>("#" + list.size()));
if (list != null) {
final StringBuffer buf = new StringBuffer();
final Iterator<AuftragsPositionDO> it = list.iterator();
while (it.hasNext() == true) {
final AuftragsPositionDO pos = it.next();
buf.append("#").append(pos.getNumber()).append(": ");
if (pos.getPersonDays() != null && pos.getPersonDays().compareTo(BigDecimal.ZERO) != 0) {
buf.append("(").append(NumberFormatter.format(pos.getPersonDays())).append(" ")
.append(getString("projectmanagement.personDays.short")).append(") ");
}
if (pos.getNettoSumme() != null) {
buf.append(CurrencyFormatter.format(pos.getNettoSumme()));
if (StringUtils.isNotBlank(pos.getTitel()) == true) {
buf.append(": ").append(pos.getTitel());
}
buf.append(": ");
}
if (pos.getTaskId() != null) {
buf.append(taskFormatter.getTaskPath(pos.getTaskId(), false, OutputType.HTML));
} else {
buf.append(getString("fibu.auftrag.position.noTaskGiven"));
}
if (pos.getStatus() != null) {
buf.append(", ").append(getString(pos.getStatus().getI18nKey()));
}
if (it.hasNext() == true) {
buf.append("\n");
}
}