【发布时间】:2026-01-01 02:45:02
【问题描述】:
在使用更新功能时,p:graphicimage 似乎存在错误。通过value="#{myController.myStreamedContent}" 加载一个图像可以工作,但是当更改myController.myStreamedContent 然后更新p:graphicimage 时,之前加载的图像保持不变。可以设置cache="false",但这在我的 Firefox 45.0 中不起作用。我使用 PrimeFaces 5.3。
以下网站也提到了这一点:
- PRIMEFACES - How to refresh a from clicking a ?
- Primefaces : GraphicImage does not refresh
- Why can't I update a p:graphicImage twice after upload a file with p:uploadFile
是否有任何替代方案可以提供与p:graphicimage 相似或相同的功能?我基本上需要能够在MEDIUMBLOB 中显示存储为byte[] 的图像。
【问题讨论】:
标签: jsf primefaces bytearray browser-cache graphicimage