Added a custom controller that goes to list view after saving an item.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user