2014-05-16 2 views
0

내가 내 데이터 테이블에서 데이터를 내보낼려고 작동하지 않는 데이터 내보내기에 직면하지만 난 그것을 수출하지 않고 페이지를 새로 고침 예를 들어 PDF 버튼을 누를 때프라임

<h:commandLink > 
     <p:graphicImage value="/images/excel.png" /> 
     <p:dataExporter type="xls" target="dataTable" fileName="alarms" /> 
    </h:commandLink> 

    <h:commandLink > 
     <p:graphicImage value="/images/pdf.png" /> 
     <p:dataExporter type="pdf" target="dataTable" fileName="alarms"/> 
    </h:commandLink> 

     <h:commandLink > 
     <p:graphicImage value="/images/csv.png" /> 
     <p:dataExporter type="csv" target="dataTable" fileName="alarms" /> 
    </h:commandLink> 
+1

프로젝트에 올바른 버전의 itext 및 poi 라이브러리를 포함합니까? – berkay

답변

0

<p:commandLink> 작업에 <h:form> 태그로 둘러싸인되어야한다 . 문제가 아닌 경우 전체 페이지의 소스 코드와 함께 작업중인 PrimeFaces 버전을 제공해주십시오.