aspose file tools
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 Head First Android this week in the Android 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: 16879

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
Don't get me started about those stupid light bulbs.
subject: Image Map in JSF
It's not a secret anymore!