Bookmarkable link to a page in another WebApplication

2007-08-20 Thread Dariusz Wojtas

Hi,

What is the best way to create bookmarkable link to a page in another
application in the same WAR file?
I mount some pages to some urls, this way:
   mountBookmarkablePage(/navi, ProductCategoryPage.class);

And it perfectly works.
But later I want to create link to this page from a page in separate
application (the same WAR file).
  add(new BookmarkablePageLink(menuItem, ProductCategoryPage.class));

The 2nd page does not know about the mount point defined above.
It creates normal wicket link, with prefix of the 2nd app - not the 1st app.
This has implications, because clicked link is processed by app2, not app1.

Is there any nice way to use such bookmarkable link without any hardcoded
strings?

Regards
Dariusz Wojtas
-- 
View this message in context: 
http://www.nabble.com/Bookmarkable-link-to-a-page-in-another-WebApplication-tf4301106.html#a12242595
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bookmarkable link to a page in another WebApplication

2007-08-20 Thread Igor Vaynberg
not across contexts, contexts in webapps are isolated. so you have to
construct the url manually, which is easy since you know the mount point. so
construct a url and give it to externallink component.

-igor


On 8/20/07, Dariusz Wojtas [EMAIL PROTECTED] wrote:


 Hi,

 What is the best way to create bookmarkable link to a page in another
 application in the same WAR file?
 I mount some pages to some urls, this way:
mountBookmarkablePage(/navi, ProductCategoryPage.class);

 And it perfectly works.
 But later I want to create link to this page from a page in separate
 application (the same WAR file).
   add(new BookmarkablePageLink(menuItem, ProductCategoryPage.class));

 The 2nd page does not know about the mount point defined above.
 It creates normal wicket link, with prefix of the 2nd app - not the 1st
 app.
 This has implications, because clicked link is processed by app2, not
 app1.

 Is there any nice way to use such bookmarkable link without any hardcoded
 strings?

 Regards
 Dariusz Wojtas
 --
 View this message in context:
 http://www.nabble.com/Bookmarkable-link-to-a-page-in-another-WebApplication-tf4301106.html#a12242595
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]