Pergunta

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.

Foi útil?

Solução

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>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top