i don't want use panel for this approach i want make it as a component and i
think that it is possible by overriding some method like onComponentTag and
etc but i dont realy know what xmltag must be written
On Tue, Jun 24, 2008 at 9:33 AM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
> 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]
>
>