cancel
Showing results for 
Search instead for 
Did you mean: 

ImageMap not working in PDK

former_member81750
Active Participant
0 Kudos

Hi All

I am using the following code to implement an ImageMap in my portal component using jsps.

<% String ImageURL = componentRequest.getWebResourcePath() + "/images/"; %>

<hbj:link id="linkID" reference="http://www.sap.com" />

<hbj:imageMap id="imageMapID" >

<hbj:imageArea areaType="RECTANGLE"

coordinates="0,0,39,30"

link="linkID"

tooltip="Click here to go to the SAP site" />

</hbj:imageMap>

<hbj:image

id="Logo"

imageMapId="imageMapID"

tooltip="People Finder"

width="434"

height="224"

src="<%= ImageURL +"welcome1.jpg" %>"

alt="picture peopleFinder.jpg"

/>

When I compile this and deploy to the local pdk portal i get the following error

java.lang.ClassNotFoundException: com.sapportals.htmlb.taglib.ImageMapTag

Any help on this is very appreciated

Pankaj

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member81750
Active Participant
0 Kudos

An update, based on the error message "java.lang.ClassNotFoundException: com.sapportals.htmlb.taglib.ImageMapTag" I opened the htmlb.jar from the location "irj ootWEB-INFpluginsportalserviceshtmlblib" using Winzip. And voila this class was not there.

With this in mind my question is how do I get an updated htmlb.jar file containg the ImageMapTag class. FYI I asked some one who is working on EP60 to check his htmlb.jar file and this class is there.

Any suggestions are welcome.

Regards

Pankaj

Former Member
0 Kudos

Hi,

Do you get your images displayed on the Portal if you include it with:

componentRequest.getWebResourcePath() + "/images/";

I tried that for a background image which works fine in the PDK but not in the Portal?

Any ideas?

Cheers, Jens

btw: I couldn`t try the remote deployment from within eclipse because I`m out of office for a while... but I`ll get back to you when I`m back...

former_member81750
Active Participant
0 Kudos

Yes, I am able to get the images displayed. For me it is not a background image but I put the image in a cell of existing table.

Regards

Pankaj

Former Member
0 Kudos

Hi Pankaj,

did you use it in a hbj-tag cell or a standard html <TD> ?

Do you know a way to access the CM directly to store the images there?

Cause the par gets too big with some more images attached... thnx!

Cheers, Jens

Btw. regarding your Blog:

I deployed components from eclipse to the pdk remotely but debugging didn`t work so far...

Maybe a permission thing?

former_member81750
Active Participant
0 Kudos

Stupid trick to get the message at the top of the forum.