You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Roman Zechner <ro...@Liland.at> on 2009/04/07 21:12:29 UTC

AjaxFallbackDefaultDataTable: redirect to specific page

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxFallbackDefaultDataTable: redirect to specific page

Posted by Roman Zechner <ro...@Liland.at>.
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 <ro...@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-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   

-- 
Liland ...does IT better

Liland IT GmbH
Creative Master
email: Roman.Zechner@Liland.at

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


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


Re: AjaxFallbackDefaultDataTable: redirect to specific page

Posted by Igor Vaynberg <ig...@gmail.com>.
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 <ro...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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