Using a static image map with Wicket
No Comments »
On one of my projects I had to implement an image and link the image area to wicket.
This is how I did it:
html
<div> <map name="themap"> <area shape="rect" coords="a1,b1,c1,d1" href="#" wicket:id="wicket1" title="Title1" /> <area shape="rect" coords="a2,b2,c2,d2" href="#" wicket:id="wicket2" title="Title2" /> </map> <br/> Some text here </div>
Java
add(new PageLink("wicket1", SomeWicketClass1.class));
add(new PageLink("wicket2", SomeWicketClass2.class));
Wicket is the best framework for web development.




