Add validation constraint

FEA: ItEr61OTS04PlanificacionHaciaAtras
This commit is contained in:
Óscar González Fernández 2010-11-11 01:20:05 +01:00
parent 9f92c8a39e
commit 1be1eb1714

View file

@ -299,6 +299,9 @@ public class FormBinder {
showValueOfDateOn(labelTaskEnd, task.getEndAsLocalDate());
this.taskWorkableDays = duration;
taskWorkableDays.setConstraint(new SimpleConstraint(
SimpleConstraint.NO_EMPTY | SimpleConstraint.NO_NEGATIVE));
taskWorkableDays.setValue(task.getWorkableDays());
taskWorkableDays.addEventListener(Events.ON_CHANGE,
new EventListener() {