This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma 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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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: 17423

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.
I agree. Here's the link:
subject: Image Map in JSF
It's not a secret anymore!