You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dariusz Wojtas <dw...@gmail.com> on 2007/08/20 21:39:49 UTC

Bookmarkable link to a page in another WebApplication

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


Re: Bookmarkable link to a page in another WebApplication

Posted by Igor Vaynberg <ig...@gmail.com>.
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 <dw...@gmail.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>