0

On Action create as bellow

@Action
public EmployeeVM newEmployee(final String name) {
    employeeRepository.create(name);
    return this;
}

It show popup enter image description here Is it possible to redirect to a new page with the back button and save button instead of popup.

Se Song
  • 1,613
  • 2
  • 19
  • 32
  • Can you clarify what you mean by "back button" or "save button" ... the dialog shows OK and Cancel. In general, the page that is shown after the action is invoked is that of the returned object (EmployeeVM in this case). You can also return a java.net.URL which will open up the returned page on a new tab (useful for hyperlinking to other systems, eg a reporting system). – Dan Haywood Oct 18 '17 at 11:02
  • Back button just like Cancel Button, I call it back button, because it's redirect. for save button just return the the Employee Object, so it will redirect to Employee Page after save. So I use VM now, it work as expected. thank – Se Song Oct 18 '17 at 13:24

0 Answers0