final DropDownChoice<GanttRelationType> relationTypeChoice = new DropDownChoice<GanttRelationType>("relationType",
new PropertyModel<GanttRelationType>(ganttObject, "relationType"), relationTypeChoiceRenderer.getValues(),
relationTypeChoiceRenderer);
relationTypeChoice.setNullValid(true);
addColumn(item, relationTypeChoice, null);
final GanttRelationType relationType = task != null ? task.getGanttRelationType() : null;
new RejectSaveLinksFragment("rejectSaveRelationType", item, relationTypeChoice, task,
relationType != null ? getString(relationType.getI18nKey()) : "") {
@Override
protected void onSave()
{
task.setGanttRelationType(ganttObject.getRelationType());
taskDao.update(task);