title: How to Export only selected columns using columnToggler
body: <p>Here I am using dataExporter for my table in primeFaces, It is successfully exported in type="xls" but the problem is that in addition I am using columnToggler for selection of columns and i want to target only those columns for export in xls file, those are checked/selected in columnToggler like:
  <a href="https://i.stack.imgur.com/EnXzg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EnXzg.png" alt="enter image description here"></a></p>
  
  <p>here is code of my dataExporter which targeted my table (id = "tbl").</p>
  
  <pre><code>    &lt;h:commandLink&gt;
    &lt;img src="Resources/images/excel.png"/&gt;
     &lt;p:dataExporter type="xls" target="tbl" fileName="dailyPoolReport_#{userAuthorization.user.loginName}" pageOnly="false" postProcessor="#{customizedDocumentsView.postProcessXLS}"/&gt;
     &lt;/h:commandLink&gt;
  </code></pre>
  
  <p>And here is my table code with columnToggler:</p>
  
  <pre><code> &lt;p:dataTable id="tbl" var="car" value="#{dailyTrackingBean.trackReportData}" rowIndexVar="row" style="font-size:12px; margin-bottom:0;"
                                                   paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                                   rowKey="#{car.vehicle.regNo}"
                                                   paginator="true" rows="50" rowsPerPageTemplate="50,100,500,1000,5000"&gt;
  
  
  &lt;f:facet name="header" &gt;
   &lt;h:outputText value="Vehicle Tracking Summary Report" style="font-size: 14px"/&gt;
  
     &lt;p:commandButton id="toggler" type="button" value="Columns" style="float:right;height: 22px;font-size: 11px" icon="ui-icon-calculator" /&gt;
  &lt;p:columnToggler datasource="tbl" trigger="toggler" &gt;
  
    &lt;/p:columnToggler&gt;
  
   &lt;/f:facet&gt;
  </code></pre>
  
  <p>Is there is any possible solution?</p>