return new Navigation("graph", period, null);
}
});
view.addCommand(new ActionCommand("${save}", Command.BACK, 1) {
public Navigation execute(Displayable d) throws Exception {
InputView form = (InputView) d;
Observation observation = form.getObservation();
Observation existing = getObservationAt(observation.getDate());
if (existing != null) {
return new Navigation("confirm-overwrite", existing,
new Navigation("save-observation", period, observation),
new Navigation("graph", period, existing));