Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
class MyPage extends WebPage {

    public MyPage() {
         String url = urlFor("pageMapName", MyPage.class, new PageParameters("foo=bar"));
    }
}

Please notice that since Wicket 1.3, the URLs provided by Wicket are always relative. Indeed, wicket can't provide absolute path because the website can be behind proxies or virtual hosted.

Still, this This can be then sent in an email, displayed back to the user, saved to a database, whatever you desire. You can also do so from within a Form subclass

...