Martijn C. Vos wrote:
> 
> [...]
> 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.
> [...]
> 

Well, Martijn, I've tried and it actually works... :-) It's a very clean
solution so I'll left a code snippet here just in case someone else needs to
solve the same problem:

In the HTML file:

<div class="image-place">
    <!-- img and usemap definition here... -->
    <map name="basic-process-500x375">
        <area shape="rect" coords="8,136,71,178" href=# 
            wicket:id="module-01" title="Subprocess 1" />
        <area shape="rect" coords="9,3,70,47" href=# 
            wicket:id="module-02" title="Subprocess 2" />
    </map>
    <br />
    Basic Business Process (BPMN)
</div>

In the Java class:

        // Links to the <area> elements of the image map...
        add(new PageLink("module-01", Module01.class));
        add(new PageLink("module-02", Module02.class));

Thanks for your help,

Cristina
 
-- 
View this message in context: 
http://www.nabble.com/Using-a-static-image-map-tp16656656p16738785.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to