Cristina wrote:
> Hello,
>
> I've defined a simple HTML image map from a business process diagram:
>
>
>
>
> href="Module01.html" title="Subprocess 1" />
> href="Module02.html" title="Subprocess 2" />
> href="Module03.html" title="Subprocess 3" />
>
> Basic Business Process (BPMN)
>
>
> Now I would like to enable this image map within Wicket...
> I've found out the ImageMap class in the API javadoc but I
> don't see how I should combine it with the above HTML.
What exactly is it that you want to enable about this in Wicket?
Do you want the areas to remain static, and only the links to
become Wicket links?
As far as I can tell, the standard Wicket ImageMap lets you
add areas (called ShapeLinks) to an ImageMap, and each ShapeLink
has a shape (rect, circle, polygon), coordinates, and a Link.
Ofcourse if the ImageMap's areas are completely static, you may
want to keep the shape and coordinates of the links outside the
Wicket code and only in the html, so I'm kinda wondering if it
would be possible to keep the map outside Wicket, and simply
give each area a wicket:id corresponding to a Link in your
Wicket code.
No idea if that would work (the ImageMap is kinda old and rarely
used), but that's what I'd try.
Otherwise, simply use the ImageMap the way it's written (which
is a bit odd, I admit): give a static a wicket:id
corresponding to an ImageMap, and add ShapeLinks (with shape,
coords and Link) to that ImageMap. That should work.
(It's probably a good idea to take my advice with a grain of
salt; I'm still very new to Wicket myself. My own problem
with the ImageMap is that it's not dynamic enough, instead of
too dynamic.)
mcv.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]