new link("edit") {
  onclick() {
      setresponsepage(new editpage(getpage().getpagereference(), getmodel()));
  }
}

class editpage {

  public editpage(pagereference ref, imodel model) {

    ....
    setresponsepage(ref.getpage());
  }
}

-igor


On Tue, Apr 7, 2009 at 12:12 PM, Roman Zechner <[email protected]> wrote:
> how can i make sure to get back to the same page of a
> AjaxFallbackDefaultDataTable that i came from after a redirect?
> e.g.:
> 1. i am on page 3 of a table of persons (listpage).
> 2. i click on a row to edit a person (detailpage).
> 3. after submitting changes, i redirect to the listpage again, but i land on
> page 0 instead of page 3
>
> what would be the best approach?
>
> roman
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to