That's exactly what I tried and I get 

WicketMessage: Expected close tag for '<a wicket:id="bankURL" href="#"
target="_new">' Possible attempt to embed component(s) '<img
wicket:id="bank" alt="" class="pic"/>' in the body of this component
which discards its body

here's my java 
add(new ExternalLink("bankURL", lender.getLenderWebsite(),
lender.getLender()).add(new StaticImage("bank", "images/logos/" +
lender.getImageSrc(), lender.getLender())));


and my html:
<a wicket:id="bankURL" href="#" target="_new">somewhere<img
wicket:id="bank" alt="" class="pic"/></a>

Thanks, Jason


igor.vaynberg wrote:
> 
> the bottom of that page shows you how to embed an external image into
> an external link.
> 
> -igor
> 
> On Tue, Feb 24, 2009 at 3:24 PM, novotny <[email protected]> wrote:
>>
>> Hi all,
>>
>> Apologies for such a  simple question but I couldn't find anything-- the
>> closet was
>> http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
>> but it just didn't work for me.
>>
>> Here's the html I want:
>>
>> &lt;a href="http://www.gohere.com"&gt;&lt;img
>> src="images/logo.gif"&gt;&lt;/a&gt;
>>
>> I tried to do something like ExternalLink("link",
>> "http://www.gohere.com";,
>> "&lt;img src=\"images/logos/" + lender.getImageSrc() + "\"/&gt;"); but it
>> escaped the img I tried to pass in as a label.
>>
>> Thanks a bunch!
>>
>> Jason
>> --
>> View this message in context:
>> http://www.nabble.com/external-image-inside-link-tp22193027p22193027.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/external-image-inside-link-tp22193027p22193550.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to