>...ImageMap is supposed to work on a static <img>
>tag with a hard-coded src atrribute.
But you can modify the src tag like below. Would that help?
WebMarkupContainer img = new ImageMap("image") {
private static final long serialVersionUID = 1L;
@Override protected void onComponentTag(final ComponentTag tag){
super.onComponentTag(tag);
tag.put("src", YOUR_VERY_OWN_URL);
}
};
On Thu, Mar 27, 2008 at 3:05 PM, Martijn Vos <[EMAIL PROTECTED]> wrote:
> Martijn Vos wrote:
> > I'm trying to use ImageMap. I've got a dynamically generated
> > image, using RenderedDynamicImageResource to generate the image
> > from a list of objects, each of which has its own coordinates
> > (which works fine).
> >
> > Now I want an imagemap so that I can actually click on those
> > objects. I thought this wouldn't be too hard, considering I've
> > got that list of objects with their coordinates, and Wicket
> > contains a convenient ImageLink class which has convenient
> > addCircleLink() and addPolygonLink() methods.
> ...
> > So basically, I'm stumped as to how to use ImageMap. Any ideas?
>
> After a bit more fiddling and looking at the source, I get the
> impression that ImageMap is supposed to work on a static <img>
> tag with a hard-coded src atrribute. So basically it's an
> extremely basic class in dire need of some extension. I figured
> I'd make my own DynamicImageMap, which would extend ImageMap and
> make for a nice first contribution to Wicket. Unfortunately,
> ImageMap is final, so I can't extend it! Why is an extremely
> basic, feature-poor class final? Doesn't that make ImageMap a
> bit of a dead end?
>
>
> mcv.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>