catch (IllegalStateException e) {
session().errors().addNotice(e.getMessage());
return null;
}
}
<BUG>public WOActionResults saveEvent() {
_event.editingContext().saveChanges();</BUG>
SPEventPage eventPage = pageWithName(SPEventPage.class);
eventPage.setEvent(_event);
return eventPage;

catch (IllegalStateException e) {
session().errors().addNotice(e.getMessage());
return null;
}
}
public WOActionResults saveEvent() {
if (session().errors().hasNotices()) {
return null;
}
_event.editingContext().saveChanges();
SPEventPage eventPage = pageWithName(SPEventPage.class);
eventPage.setEvent(_event);
return eventPage;
