Ignore my last email - I was being dumb! "[wicket 6] Any shortcut to get full url ?" does have my answer...! Doh! Sorry! :)
-----Original Message----- From: Bertrand Guay-Paquet [mailto:ber...@step.polymtl.ca] Sent: 02 May 2013 15:17 To: users@wicket.apache.org Subject: Re: Page's Mounted URL Have a look at RequestUtils#toAbsolutePath(). Also, look at the email on this mailing list preceding yours titled "[wicket 6] Any shortcut to get full url ?" :) On 02/05/2013 1:06 AM, Colin Rogers wrote: > Wicketeers, > > Where I have; > > mountPage( "path/to/myPage", MyPersonalPage.class ); mountPage( > "different/path/customPage", AnotherCustomPage.class ); > > I now have a Page class (i.e. MyPersonalPage) - how can I determine the > mountPage String (i.e "path/to/myPage") ? > > I'm sure this should be simple, but I can't find anything. Methods like > urlFor() only work in relation to the current context/request, as far as I > can see. You can't override mountPage - as its final - either in order to > keep a simple store. > > Cheers, > Col. > > > > EMAIL DISCLAIMER This email message and its attachments are confidential and > may also contain copyright or privileged material. If you are not the > intended recipient, you may not forward the email or disclose or use the > information contained in it. If you have received this email message in > error, please advise the sender immediately by replying to this email and > delete the message and any associated attachments. Any views, opinions, > conclusions, advice or statements expressed in this email message are those > of the individual sender and should not be relied upon as the considered > view, opinion, conclusions, advice or statement of this company except where > the sender expressly, and with authority, states them to be the considered > view, opinion, conclusions, advice or statement of this company. Every care > is taken but we recommend that you scan any attachments for viruses. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org