two ways: 1) wrap the link and img into panel 2) see how label works and write out the img tag as a raw string
-igor On Mon, Jun 23, 2008 at 11:00 PM, nasrin mansour <[EMAIL PROTECTED]> wrote: > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]