[英]Re-render <h:graphicImage by <p:commandButton
Lets assume i have next graphic image tag inside a form 假设我在表单中有下一个图形图像标签
<p:lightBox styleClass="imagebox " id="imageLightBox" rendered="true">
<h:outputLink value="http://..../center/#{myBean.centerId}/picture" title="Bla bla bla">
<h:graphicImage value="http://..../center/#{myBean.centerId}/picture" />
</h:outputLink>
</p:lightBox>
and i have next primefaces command button 我有下一个primefaces命令按钮
<p:commandButton icon="fa fa-save" value="Save" title="Save" actionListener="#{myBean.saveCenterImage()}" update="@form" >
So how can i re-render graphicImage when i click on commandButton . 因此,当我单击commandButton时如何重新渲染graphicImage 。
我认为您需要使用p:graphicImage
而不是h:graphicImage
并设置属性cache = false,以便浏览器不会缓存图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.