Hi,
 
Thank you very much for providing this useful information.
I will try implementing it using your guidelines.
I will let you know once I am done with it.
 
Thanx again.
-Sunil
----- Original Message -----
Sent: Wednesday, August 17, 2005 6:55 PM
Subject: Re: How to find out the co-ordinates when I click on a world map(Image)?

Hi,
 
Now I see the problem. I don't know how this can be done with JSF. I know there are some reporting products that offer JSF compoenents. You can find them here http://www.jsfcentral.com/products/index.html. Maybe some of them are free or have a trial and you can see how they are doing.
 
In my opinion, what you want cannot be done with t:graphicImage or h:graphicImage. I mean, I saw that t:graphicImage has the usemap attribute but that is only to can specify the usemap. In <AREA> tag from <MAP>, you have to link a jsp or servlet and there to take care to set your bean members.
 
<MAP NAME="jfreechart-30455.png">
<AREA SHAPE="RECT" COORDS="106,15,177,251" title="(Hits, Catalog) = 3,797,300" href="xy_chart.jsp?series=Hits&section=Catalog">
<AREA SHAPE="RECT" COORDS="204,208,275,251" title="(Hits, Checkout) = 702,959" href="xy_chart.jsp?series=Hits&section=Checkout">
<AREA SHAPE="RECT" COORDS="302,195,373,251" title="(Hits, Tracking) = 903,258" href="xy_chart.jsp?series=Hits&section=Tracking">
<AREA SHAPE="RECT" COORDS="400,208,471,251" title="(Hits, Service) = 702,013" href="xy_chart.jsp?series=Hits&section=Service">
</MAP>
Alin.
Hi,
 
Thanx a lot for your prompt reply.
The main problem is to set specific links on every area from the image.
I need to set command links instead of html href.
 
There will be only one command link for the image. It shd be able to know which part has been clicked and then I shd be able
to send it as parameter to the action method in managed bean. Here, I can decide depending on the parameter received the next image to be displayed
on the same page.
 
Do you have any idea how to implement it using JSF components?
 
Regards,
Sunil
----- Original Message -----
Sent: Wednesday, August 17, 2005 4:11 PM
Subject: Re: How to find out the co-ordinates when I click on a world map(Image)?

Hi,
 
You need to use usemap attribute of an img html element. Usemap attach a map defined in your html to the image and that map defines different areas on your image. The you can set specific link on every area from your image.
 
I sow something nice with images with map used in reports here:
http://www.jfree.org/jfreechart/index.php, Servlets, JSP. It is about the Cewolf Project.
 
Unfortunatelly, I don't know a nice tool to create a map for an image.
 
Hope this helps,
Alin.
Hi,
 
I have a world map which is an image and the user can click on any of the continent.
Once a particular continent is clicked, the world map must be replaced by that continent's map and so on..
 
Now, I have one image for each continent. The problem is how to know which continent was clicked upon in the world map?
 
Any Ideas?
 
Regards,
Sunil

Reply via email to