You mean something like:
add(new Link("theLink") {
@Override
public void onClick() {
setResponsePage(yourPageInstance);
}
});
On Mon, Nov 28, 2011 at 3:31 PM, Martijn Dashorst <
[email protected]> wrote:
> Then the page is no longer bookmarkable, since you depend on state.
>
> page.getClass() will work though.
>
> Martijn
>
> On Mon, Nov 28, 2011 at 9:27 PM, eugenebalt <[email protected]> wrote:
> > When you create a BookmarkablePageLink, you can set as its target the
> class
> > of your page.
> >
> > But what if you want to use an existing instance of a page? Is there a
> way
> > to construct a link like that?
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/BookmarkablePageLink-to-an-existing-instance-of-a-page-tp4116739p4116739.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>