简体   繁体   English

重新渲染

[英]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.

相关问题 p:commandButton onclick中的EL表达式不会在ajax请求上更新/重新呈现? - EL expression inside p:commandButton onclick does not update/re-render on ajax request? 使用a4j:commandLink或a4j:commandButton重新渲染h:form在IE9中不起作用 - Re-render of h:form using a4j:commandLink or a4j:commandButton does not work in IE9 p:ajax里面的h:graphicImage - p:ajax inside h:graphicImage 如何刷新 <p:graphicImage> 从点击 <p:commandButton> - How to refresh a <p:graphicImage> from clicking a <p:commandButton> 如何在不同的h:form中重新渲染组件? - How to re-render component in a different h:form? 用于的valueChangeListener <h:selectOneMenu> 重新渲染时不起作用 <rich:popupPanel> - valueChangeListener for <h:selectOneMenu> not function when re-render <rich:popupPanel> ui:repeat中的bootsfaces b:commandButton不更新h:graphicImage - bootsfaces b:commandButton in ui:repeat not updating h:graphicImage p:commandButton 与 h:commandButton - p:commandButton vs. h:commandButton primefaces 4.0 p:graphicimage defaultstreamedcontent不呈现 - primefaces 4.0 p:graphicimage defaultstreamedcontent does not render 如何重新渲染 <p:panel> 从 <p:selectOneRadio> 表单验证失败时的选项? - How to re-render <p:panel> from <p:selectOneRadio> option when form fails a validation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM