rdicroce / jsfexporter

Lapis JSF Exporter
19 stars 17 forks source link

problem exrpoting p:TreeTable with inside p:columns #38

Open besaurus opened 5 years ago

besaurus commented 5 years ago

Hello ,

i'm succesfully using lapis.jsfexporter, im'using primefaces 6.2 with sping boot. I have a problem whitih one pages, beside a snipped of code

<p:treeTable id="i" widgetVar="i" value="#{iHV.selectDates)}" 
    var="node" 
    rendered="#{iHV.selectIndicator != null}" 
    paginator="false"
    resizableColumns="true"
    paginatorPosition="top" >
    <f:facet name="header">
        <p:commandLink ajax="false">  
            <p:graphicImage value="/images/excel.png" height="20"/>
            <l:dataExporter source="i" fileType="excel" fileName="documents"/>
        </p:commandLink>
    </f:facet>    
    <p:column headerText="Description" style="width:300px">
        <h:outputText value="#{node[1]}" title="#{node[1]}"/>
    </p:column>  
    <p:columns value="#{iHV.inValDates}" var="c" columnIndexVar="colIndex">
        <f:facet name="header">
            <h:outputText value="#{c}" />
        </f:facet>
        <h:outputText value="#{iHV.getValue(node[0],c)}">
            <f:convertNumber pattern="#,###,##0.0000" />
        </h:outputText>
    </p:columns>
</p:treeTable>

The problem is jsfexportewr do not manage p:columns but only p:column!!!!

May you extends implementation?.

Thanks in advance