title: How to export a data table as different from the UI in JSF Primefaces?
body: <p>I have a data table which I want to export as different from the UI. </p>
  
  <p>For example, part of my data table is</p>
  
  <pre><code>&lt;p:column sortBy="#{phi.patProtein}" width="130"&gt;
      &lt;f:facet name="header"&gt;
          &lt;h:outputText value="Pathogen Protein" /&gt;
      &lt;/f:facet&gt;
  
      &lt;h:outputText id="patProteinText" value="#{phi.patProtein}" /&gt;
      &lt;p:commandLink id="patBtn" value="[+]" type="button" /&gt;
      &lt;p:overlayPanel for="patBtn" hideEffect="fade" dynamic="true""&gt;
          &lt;h:outputText value="#{phi.patProteinLong}"/&gt;
      &lt;/p:overlayPanel&gt;
  &lt;/p:column&gt;
  </code></pre>
  
  <p>I want to export only the output text (<code>"#{phi.patProtein}"</code>) from the column, not the command link (<code>"[+]"</code>) and overlay panel. But Primefaces exports everything in column, and not gives me a chance to specify which fields of column to export. </p>
  
  <p>How can I do this?</p>