How to return link to an external URL in Wicket?

java, wicket

Solution

Use `ExternalLink`.

A normal static link:

new ExternalLink("link", "http://some.url", "This is a some.url link");

Depending on the context may be better to use this other constructor that admits and `IModel` of your `href` and `label` parameters:

ExternalLink(final String id, final IModel<String> href, final IModel<?> label)

Problem

I have a web application with form. When I click to save, application creates some file and returns some url. How I can display this url to web page?

Original source