I am trying to create clickable icons that would link to an external page.
I came across - http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html - But the server just goes into an endless loop. pointers? Ed ExternalLink link = new ExternalLink("partnerLink", partnerLink); StaticImage sImg = new StaticImage("partnerIcon", new Model(partnerIconUrl)); link.add(sImg); add(link); html xmlns:wicket> <wicket:panel> <div class="partner_panel"> <a href="#" wicket:id="partnerLink"> <img wicket:id="partnerIcon" width="50" height="35" src="#" /> </a> </div> </wicket:panel> </html> class StaticImage extends WebComponent { public StaticImage(String id, IModel model) { super(id, model); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, "img"); tag.put("src", getModelObjectAsString()); } } _________________________________________________________________ Suspicious message? There’s an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008
