[ 
https://issues.apache.org/jira/browse/WICKET-3925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070605#comment-13070605
 ] 

Konstantin Ignatyev commented on WICKET-3925:
---------------------------------------------

Disagreed.
This is old thread but relevant: 
http://apache-wicket.1842946.n4.nabble.com/Bookmarkable-page-absolute-url-td1860105.html

As you may see I have created my subclass of Link  - AjaxPopUpLink, and need a 
way to render _absolute_ url, I guess I am not alone as this makes Wicket much 
easier to work with from JavaScript.

So, if W is so dependent on relative path I think W would benefit from a core 
component that generates absolute URLs, or a parameter to BookmarkableLink to 
force it generating full URLs.

RequestUtils.toAbsolutePath   does not work because URL returned from 
getRequestCycle().mapUrlFor(getPageClass(), getPageParameters()) is relative 
and stripped from /wicket/bookmarkable

In the meantime: how to generate full URL to the page even while I am on the 
page?


> BookmarkablePageLink does not produce bookmarkable URLs
> -------------------------------------------------------
>
>                 Key: WICKET-3925
>                 URL: https://issues.apache.org/jira/browse/WICKET-3925
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC5.1
>            Reporter: Konstantin Ignatyev
>         Attachments: w-1.5-bookmarkable.tgz
>
>
> I have matrix component used on the list view and it produces URL-s like this 
> one
> http://localhost:8080/wicket/bookmarkable/wsite_impl.components.inv.MatrixPopupPage?category=1&bt=simple&bv=2008&pname=year
> those urls are used by cluetip jquery plugin to open pop up page, and that 
> works fine.
> However the page in turn contains the same component and now it produces 
> different URL:
> http://localhost:8080/wsite_impl.components.inv.MatrixPopupPage?category=2&bt=int_limits&bvmin=47255&bvmax=47655&pname=price

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to