Wicket Remove

wicket.markup.html.link.BookmarkablePageLink

[back to the reference]

The BookmarkablePageLink component allows you to navigate to Bookmarkable pages. A page is bookmarkable when it has a public default constructor and/or a public constructor with a PageParameters argument.

go to our bookmarkable page without passing any arguments

go to our bookmarkable page passing a message argument


Behind the Scenes

Example HTML

<a wicket:id="pageLinkWithArgs">go to our bookmarkable page passing a message argument</a>

Example Code

        // Note that any arguments are passed as request parameters, and should thus be strings
        PageParameters parameters = new PageParameters();
        parameters.put("message", "This message was passed as a page parameter argument");
        add(new BookmarkablePageLink<>("pageLinkWithArgs", BookmarkablePage.class, parameters));

Further examples & and comments/explanations may be available in the source code.