Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to return link to an external URL in Wicket?

Tags:

java

wicket

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?

like image 392
hudi Avatar asked Dec 27 '22 02:12

hudi


1 Answers

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)
like image 77
jordeu Avatar answered Jan 06 '23 04:01

jordeu