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.
When I use it, however, I get this error message:
WicketMessage: Component imageMap must be applied to a tag of type
'img', not '<map wicket:id="imageMap" name="foo" id="foo">' (line 0,
column 0)
[markup =
file:/C:/eclipse-workspace/Spacegame3/web/WEB-INF/classes/mcv/wicket/spacegame/UniverseMapPanel.html,
index = 4, current = '<map wicket:id="imageMap" name="foo" id="foo">'
(line 6, column 5)]
But when I create the ImageMap with the image's wicket:id instead
of its own, I get this error:
java.lang.IllegalArgumentException: A child with id 'universeMap'
already exists:
So should I remove the wicket Image? That makes no sense, because
then how would the <img> know what image to show?
So basically, I'm stumped as to how to use ImageMap. Any ideas?
mcv.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]