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

Reply via email to