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
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;
...
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) {