0
我正嘗試表明,可以存儲在內存中的一個文件夾中的一個圖像,firts我正嘗試顯示該文件夾的內容一個IMAGEM ...顯示使用graphicImage的
I'm通話一個dialog
與commandbutton
和在dialog
裏面有一個graphicImage
但它沒有顯示圖像。
那麼最新錯誤?
<p:dialog header="#{lbl['LABEL.ATENDENTE.IMAGEMCERTIFICADO']}" widgetVar="dlgViewCpfImagem" modal="true" resizable="false" closable="false" dynamic="true">
<h:form id="formDlgViewCpfImagem" enctype="multipart/form-data">
<p:messages id="messageDlgViewCpfImagem" showDetail="true"/>
<p:panelGrid styleClass="noBorders panelGridCenter gridNoBackground">
<p:row>
<p:column>
<p:graphicImage value="#{atendenteBean.fileCpf.getAbsolutePath()}"/>
</p:column>
</p:row>
</p:panelGrid>
</h:form>
<center>
<p:commandButton process="@this" value="#{lbl['BOTAO.FECHAR']}" oncomplete="dlgViewCpfImagem.hide()" update=":form:panelAnexarArquivo"/>
</center>
</p:dialog>
<p:column rendered="#{not empty atendenteBean.pojo.imgCpf}">
<p:commandButton process="@this" icon="botaoLog" styleClass="botaoImagem" oncomplete="dlgViewCpfImagem.show()"/>
</p:column>
但有一個問題,因爲該項目是保存圖像從客戶端系統,所以這將是在服務器的根目錄... 我可以是否將該文件複製到流並處理? –