hi, there is an sub class from ajax link that i add a image to it . and i use it in many panel now how can i add img tag for image to this link ? i want in every panel i only put <a> tag for this link and <img> tag be in SampleAjaxLink
public class SampleAjaxLink extends AjaxLink {
public SampleAjaxLink(final String id, final IModel model) {
super(id);
Image image = new Image("link.image");
image.add(new AttributeModifier("src", true, model));
add(image);
}
}
thanks
