Re: BookmarkablePageLink to an existing instance of a page?

2011-11-28 Thread Martijn Dashorst
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 eugeneb...@yahoo.com wrote: When you create a BookmarkablePageLink, you can set as its target the class of your page. But what if you

Re: BookmarkablePageLink to an existing instance of a page?

2011-11-28 Thread eugenebalt
How about a regular link, can it be constructed with an existing page instance? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BookmarkablePageLink-to-an-existing-instance-of-a-page-tp4116739p4116770.html Sent from the Users forum mailing list archive at Nabble.com.

Re: BookmarkablePageLink to an existing instance of a page?

2011-11-28 Thread Adam Gray
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 martijn.dasho...@gmail.com wrote: Then the page is no longer bookmarkable, since you depend on state.