I had this code working (RichFaces):
There is a map with some elements mapped:
Code: Select all
<map name="image_diagramMap" id="image_diagramMap">
<area shape="rect" class="diagelem" coords="260,224,350,284" onclick="myFunction('code_parameter');" />
</map>
Code: Select all
<a4j:jsFunction name="myFunction" action="#{MyClass.refreshElements}" oncomplete="#{rich:component('popupElement')}.show();" reRender="popupElement">
<a4j:actionparam name="code" assignTo="#{MyClass.codeParam}" />
</a4j:jsFunction>
I'm trying to do it using PrimeFaces but I can't find a way to set "MyClass.codeParam" with "code_parameter"
Thank you.