Every time I try to use "setPropertyActionListener" inside an graphicImage, this shows up: Error Message
<h:graphicImage value="/images/h.png">
<f:setPropertyActionListener target="#{pokemonController.haarfarbe}" value="h" />
</h:graphicImage>
Does it only work with commandButtons?
EDIT: correct way:
<h:commandLink action="Augenfarbe.xhtml">
<h:graphicImage value="/images/h.png" />
<f:setPropertyActionListener target="#{pokemonController.hautfarbe}" value="h" />
</h:commandLink>