Details
Description
This is my code :
String a1 = RequestUtils.toAbsolutePath(getRequestCycle().urlFor(CurrentPage.class , pps).toString());
System.out.println("a1 = " + a1);
Link link = new AjaxFallbackLink("link")
{
@Override
public void onClick(AjaxRequestTarget target)
};
The wicket application's url-pattern is "/app/*"
I am viewing a mounted bookmarkable page : CurrentPage , with an AJAX-link.
I want to get the absolute Path in the AJAX onClick() method ,
Here is the output :
a1 = http://foo.bar/app/CurrentPage/para1/value1
a2 = http:///CurrentPage/para1/value1
a1 is correct , while a2 lacks of hostname and url pattern (which WicketServlet listens to)
Attachments
Attachments
Issue Links
- relates to
-
WICKET-2717 bookmarkablepagelink broken on ajaxupdate
- Resolved