This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Image Map in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Image Map in JSF" Watch "Image Map in JSF" New topic

Image Map in JSF

Joe Walt

Joined: Sep 28, 2012
Posts: 10
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=""/>
<area shape="rect" coords="25,160,120,265" href=""/>


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17038

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.

An IDE is no substitute for an Intelligent Developer.
Have you checked out Aspose?
subject: Image Map in JSF
jQuery in Action, 3rd edition