Added a custom controller that goes to list view after saving an item.

This commit is contained in:
Socrates
2020-06-10 21:45:52 +02:00
parent 95a86750e1
commit be7b319f8b
5 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
package com.yourcompany.babydatenbank.actions;
import org.openxava.actions.*;
public class SaveAndShowListAction extends SaveAction {
public void execute() throws Exception {
super.execute();
if (!getErrors().contains()) {
setNextMode(LIST);
}
}
}