title: Dataexporter images in Primefaces java
body: <pre><code>&lt;h:head&gt;&lt;/h:head&gt;     
  
      &lt;h:form &gt;
  
          &lt;h3&gt;Dynamic Data table example&lt;/h3&gt;
      &lt;p:dataTable id="tbl" var="dizgi" value="#{viewEmployeesManagedBean.dizgi}"&gt;
      &lt;f:facet name="{Exporters}"&gt;
  
                  &lt;h:commandLink&gt;
                  &lt;p:graphicImage library="images" name="excel.png" width="24" /&gt;
                  &lt;p:dataExporter type="xls" target="tbl" fileName="dizgi" /&gt;
              &lt;/h:commandLink&gt;
  
          &lt;/f:facet&gt;
      &lt;p:column headerText="AgentCode"&gt;
          &lt;h:outputText value="#{dizgi.agentCode}" /&gt;
      &lt;/p:column&gt;
  
      &lt;p:column headerText="Date"&gt;
          &lt;h:outputText value="#{dizgi.date}" /&gt;
      &lt;/p:column&gt;
  
      &lt;p:column headerText="ticket_sold"&gt;
          &lt;h:outputText value="#{dizgi.ticket_sold}" /&gt;
      &lt;/p:column&gt;
  
      &lt;p:column headerText="net_usd_sale"&gt;
          &lt;h:outputText value="#{dizgi.net_usd_sale}" /&gt;
      &lt;/p:column&gt;
  
      &lt;p:column style="text-align: center"&gt;
     &lt;f:facet name="header"&gt;
       &lt;h:outputText value="Details" /&gt;
     &lt;/f:facet&gt;
     &lt;h:graphicImage value="../resources/images/details.png" /&gt;
      &lt;/p:column&gt;
  
  &lt;/p:dataTable&gt;
  &lt;h3&gt;Export Page Data Only&lt;/h3&gt;
      &lt;h:commandLink&gt;
          &lt;p:graphicImage library="images" name="excel.png" width="24" /&gt;
          &lt;p:dataExporter type="xls" target="tbl" fileName="dizgi" pageOnly="true"/&gt;
      &lt;/h:commandLink&gt;
  
      &lt;/h:form&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <blockquote>
    <p>Here is the code.I create datatable which has text and images.It displays them </p>
  </blockquote>
  
  <p>on localhost.It works good but there is one problem.When I export </p>
  
  <p>datatable,In excel image columns are empty.What is the problem guys? Any </p>
  
  <p>suggestion?</p>