Access to the bookmarkable pages map

2009-06-02 Thread Chris Colman
After web application initialization, in which WebApplication.mount() is
called on each bookmarkable page, Wicket obviously has a map of some
description to allow it to look up the mounted pages based on the path.

Is this map available to application code to look up?

My code also needs a way of converting application path to
BookmarkablePage class so that I can construct some
BookmarkablePageLinks and rather than duplicate this internal path -
page class map I was hoping that there is some way that application code
can access that map.

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



Re: Access to the bookmarkable pages map

2009-06-02 Thread Igor Vaynberg
this map is an implementation detail, so we do not expose it, eg in
the future there may not even be a map but an internal data structure
to optimize lookups.

a very simple solution is for you to take a step back, build your own
map, and then use that map to initialize the mounts. no duplication
and no headaches.

you can build bookmarkable links simply using urlfor(page.class). if
the page is mounted you will get a mount link instead of the standard
?wicketbookmarkablepage=class

-igor

On Tue, Jun 2, 2009 at 8:07 AM, Chris Colman
chr...@stepaheadsoftware.com wrote:
 After web application initialization, in which WebApplication.mount() is
 called on each bookmarkable page, Wicket obviously has a map of some
 description to allow it to look up the mounted pages based on the path.

 Is this map available to application code to look up?

 My code also needs a way of converting application path to
 BookmarkablePage class so that I can construct some
 BookmarkablePageLinks and rather than duplicate this internal path -
 page class map I was hoping that there is some way that application code
 can access that map.

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



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