Regardless of which coding strategy is chosen for the mount, {@link org.apache.wicket.markup.html.link.BookmarkablePageLink> BookmarkablePageLink} can be usedto insert a bookmarkable link to the request target.
This example demonstrates how to mount a path with QueryStringRequestTargetUrlCodingStrategy
within the init
method of a class implementing {@link org.apache.wicket.protocol.http.WebApplication WebApplication}:
mount(new QueryStringUrlCodingStrategy("/admin/productmanagement", admin.ProductManagement.class));
Note that, as with the main BookmarkablePageRequestTargetUrlCodingStrategy, if the output of this coding strategy is passed through {@link javax.servlet.http.HttpServletResponse#encodeURL(java.lang.String) HttpServletResponse.encodeURL} and the client has cookies turned off, the client's session IDwill be stored in a path parameter, like so:"/mywebapp/myservlet/admin/productmanagement;jsessionid=730EC527564AF1C73F8C2FB19B604F55?action=edit&product=4995" . @author Benjamin Hawkes-Lewis
|
|
|
|
|
|
|
|