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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



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.

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



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.

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



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com

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