Hi everyone, 

When using a void action, let’s say a remove action, the user is redirected to 
a page "no results". When clicking the back button in the browser the user sees 
"Object not found" (since you’ve just deleted this object). 

Example:

public class Person {
    ....
    public void remove() {
        ...
    }
}

You can return a list for example to prevent the user from being redirect to a 
"No results" page, but I think it’s not the responsibility of the controllers 
in the domain model. A solution could be that wicket viewer goes back one page 
when encountering a deleted object. And refresh the current page when receiving 
a null response or invoking a void action. 

What do you guys think that is the best solution? Or do you have another view 
on this situation?

Looking forward hearing from you.

Regards, 

Yu Ri Tan

Reply via email to