Going back after save or cancel method?

2007-10-04 Thread Stanczak Group
I have a classic list and edit page setup. You select an object that you then pass to the edit page. My hang up is how to I return the user to the list page, if the list page took a constructor parameter so it knows what to list? In other words the list page has a constructor parameter, so how

Re: Going back after save or cancel method?

2007-10-04 Thread Martijn Dashorst
pubic class ListPage { ... @override void onClick() { setResponsePage(new EditPage(getModelObject(), ListPage.this)); } } public class EditPage { private Page previousPage; public EditPage(Foo edit, Page back) { previousPage = back; ...

Re: Going back after save or cancel method?

2007-10-04 Thread Stanczak Group
Great, thanks. Martijn Dashorst wrote: pubic class ListPage { ... @override void onClick() { setResponsePage(new EditPage(getModelObject(), ListPage.this)); } } public class EditPage { private Page previousPage; public EditPage(Foo edit, Page back) {