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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Image Map in JSF" Watch "Image Map in JSF" New topic
Author

Image Map in JSF

Joe Walt
Greenhorn

Joined: Sep 28, 2012
Posts: 8
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

Joined: Jun 25, 2001
Posts: 16141
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image Map in JSF