Hi,

The question was how to use PageReference with BookmarkablePageLink.

To do this the current page id can be passed as a parameter to the next page.

add(new BookmarkablePageLink("id").getPageParameters().add("prevPageId",
getPage().getPageId()));

In the NextPage.java do:

PageReference prev = new
PageReference(getPageParameters().get("prevPageId").toInteger());

On Tue, Oct 23, 2012 at 9:41 AM, Dirk Forchel <dirk.forc...@exedio.com> wrote:
> Here a short example with two Pages (a kind of "overview" page and a
> "detailed view" page) how it could work:
>
> e.g. in OverviewPage.java:
>
>
>
> in DetailedViewPage.java:
>
>
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Using-PageReference-for-a-back-link-tp4653212p4653235.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to