代码之家  ›  专栏  ›  技术社区  ›  mibrahim.iti

通过命令按钮重新渲染图形图像

  •  2
  • mibrahim.iti  · 技术社区  · 7 年前

    <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>
    

    我有下一个primefaces命令按钮

    <p:commandButton icon="fa fa-save" value="Save" title="Save" actionListener="#{myBean.saveCenterImage()}" update="@form" >
    

    那么我如何重新渲染呢 当我点击 命令按钮

    1 回复  |  直到 7 年前
        1
  •  3
  •   Alec Jones    7 年前

    我认为你需要使用 p:graphicImage 而不是 h:graphicImage