• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image Map in JSF

 
Joe Walt
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would I recreate the following in JSF:

<img src="ContentPageImage.gif" border="0" usemap="#green" alt="Special Offer for B2C Customers" />
<map name="green">
<area shape="rect" coords="20,30,125,125" href="http://www.test.com/furniture.html"/>
<area shape="rect" coords="25,160,120,265" href="http://www.test.com/furniture.html"/>
</map>


Thanks,

Joseph
 
Tim Holloway
Saloon Keeper
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow. I haven't seen one of those in a while.

The JSF graphicImage tag does support the usemap attribute. Apparently, you have to do the actual map definitions in raw HTML just like before. For best results, wrap the map in an f:verbatim tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic