Frage

I have the requirement that on mouse over of a <p:graphicImage> a JSF backing bean method should be called which will display some data dynamically.

How can I achieve this? Please don't suggest me JavaScript code.

War es hilfreich?

Lösung

This link shows that <h:graphicImage> supports the mouseover event. Since you are using Primefaces, you should be able to do something like

<h:graphicImage ...>
    <p:ajax event="mouseover" actionListener="myMethod"/>
</h:graphicImage>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top