You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alex Burgel (JIRA)" <ji...@apache.org> on 2007/11/26 20:49:43 UTC
[jira] Commented: (WICKET-609) Wicket should provide an easy method
to generate absolute urls to bookmarkable pages
[ https://issues.apache.org/jira/browse/WICKET-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545570 ]
Alex Burgel commented on WICKET-609:
------------------------------------
this has been working for me:
public static CharSequence getPagePath(Page page, PageParameters params) {
IRequestTarget target = new BookmarkablePageRequestTarget(PageMap.DEFAULT_NAME, page.getClass(), params);
return page.getRequestCycle().getProcessor().getRequestCodingStrategy().pathForTarget(target);
}
that will return the path without all the '../../' stuff. then you can just append that to your domain name, contextPath, and wicket filter path.
> Wicket should provide an easy method to generate absolute urls to bookmarkable pages
> ------------------------------------------------------------------------------------
>
> Key: WICKET-609
> URL: https://issues.apache.org/jira/browse/WICKET-609
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.3.0-beta1
> Reporter: Ryan Crumley
> Assignee: Alastair Maw
> Priority: Critical
> Fix For: 1.3.0-rc2
>
>
> Currently there is no easy way to generate an absolute url for a bookmarkable page. Something like getFullyQualifiedUrl(String contextRoot, Class page, PageParameters parameters) would be ideal.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.