PRIMEFACES - How to refresh a <p:graphicImage> from clicking a <p:commandButton>? PRIMEFACES - How to refresh a <p:graphicImage> from clicking a <p:commandButton>? ajax ajax

PRIMEFACES - How to refresh a <p:graphicImage> from clicking a <p:commandButton>?


By default the graphicImage caches the image.
Set the cache attribute to false on your p:graphicImage
Something like this:
<p:graphicImage value="#{dynamicImageController.graphicText}" cache="false" />