Component.urlFor(ForgotPasswordRequest.class,pars); (not a static...call it as "urlFor(...)" from your page or component)
-Clint On Wed, May 20, 2009 at 10:54 AM, Kent Larsson <kent.lars...@gmail.com> wrote: > Hi, > > I have created a BookmarkablePageLink and I would like to grab a > properly escaped URL-string which I can then send through e-mail. > > For my first try noHtmlSensitiveChars & fullyEscaped contained the > empty ("") string: > > PageParameters pars = new PageParameters(); > pars.add("confirmationCode", "someconfcodestring"); > BookmarkablePageLink bookmarkablePageLink = new > BookmarkablePageLink("link", ForgotPasswordRequest.class, pars); > String noHtmlSensitiveChars = bookmarkablePageLink.getModelObjectAsString(); > String fullyEscaped = Strings.escapeMarkup(noHtmlSensitiveChars, true, > true).toString(); > System.out.println("No sensitive chars:" + noHtmlSensitiveChars); > System.out.println("Fully escaped:" + fullyEscaped); > > Any ideas on how I could solve this? > > Best regards, Kent > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Clint Popetz http://42lines.net Scalable Web Application Development --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org