Re: AjaxFallbackDefaultDataTable: redirect to specific page

2009-04-07 Thread Igor Vaynberg
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 roman.zech...@liland.at 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxFallbackDefaultDataTable: redirect to specific page

2009-04-07 Thread Roman Zechner

thanks!!

Igor Vaynberg wrote:

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 roman.zech...@liland.at 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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  


--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org