you can use the request coding strategy to resolve the request that has a "secure.html" page back to an irequesttarget. you can then check if the irequesttarget is an instance of ibookmarkablepagerequesttarget. if it is, you can cast and call getpageclass(), then pass that to the metadataroleauthorizationstrategy to see which roles are associated with it.
-igor On Tue, Jun 8, 2010 at 6:42 AM, Marieke Vandamme <marieke.vanda...@tvh.be> wrote: > > Hello, > > In my application I have the following: > mountBookmarkablePage("/insecure.html", InsecurePage.class); > mountBookmarkablePage("/secure.html", SecurePage.class); > MetaDataRoleAuthorizationStrategy.authorize(SecurePage.class, Roles.USER); > > I have a reusable component (homemade) that generates the navigation for the > site from a database. In the database the 'secure.html' - url is specified, > but when making the link in the navigation, I need to check if the user has > right to the page. > > Now my question: Is it possible that I get the rights for my SecurePage, > when only having the 'secure.html' to start from? I tried to look into the > wicket-code, but somewhere between BookmarkablePageRequestTarget and > RequestCycle I got lost... > Hope someone can help me! Thanks for any help ! Marieke Vandamme > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/get-rights-for-mounted-url-tp2247394p2247394.html > Sent from the Wicket - User 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org