Hello,
I'm playing around with the outputChart component and discovered, that there is a problem, when you want to use an actionListener. In this case an image map is rendered. Unfortunately the http attribute gets the value Code:
. I think what had been intended was to invalidate this link. This could be done by using Code:
.
To make a proof of concept I patched the code of com.icesoft.faces.component.outputchart.OutputChart in the method generateClientSideImageMap.
The new method.
Code:
void generateClientSideImageMap(DOMContext domContext, Element map) {
if (isClientSideImageMap()) {
Iterator area = getGeneratedImageMapArea().values().iterator();
while (area.hasNext()) {
ImageMapArea areaMap = (ImageMapArea) area.next();
Text areaNode = domContext.createTextNode(areaMap.toHTML(
"title ='" + areaMap.getLengendLabel() +
getParentFormId() + "']['" + ICE_CHART_COMPONENT +
"'].value='" + getClientId(getFacesContext()) +
"id-key" + areaMap.hashCode() +
"';iceSubmitPartial(document.forms['" +
getParentFormId() + "'],this,event); return false;\""));
map.appendChild(areaNode);
}
} else {
//logging client side image Map was not enabled
}
}
I hope this helps and the code can be used in the next release.
Greetings,
Achim.