java - How to make a wicket link appear as an image? -


I am trying to create a wicket link in the form of an image instead of the text. I am creating an external link and then placing it on the page.

 Add  (new external link ("link", url, "page name")); & Lt; One wicket: id = "link" & gt; & Lt; / A & gt;  

My problem is that I can not put an image in place of "Page name" because it will only set html as text, instead I tried to run a wicket id instead And it was also provided in the form of text. Can anyone help?

For a static image:

  & lt; One wicket: id = "link" & gt; & Lt; Img src = "myImg.jpg" alt = "my image" /> gt; & Lt; / A & gt; Addition (new ExternalLink ("link", url));  

Or add an image to the ExtalLink for a dynamic image


Comments