Stop exporting buttons and checkbox columns

Deb Source

I have a dataTable where two columns are checkbox and button, respectively. The checkbox column is blank column but the button appears "org.primefaces.component.commandbutton.CommandButton @ 13c643". How can I not print these columns to export the dataTable to excel?

Thanks.

javajsfprimefacesdatatable

Answers

answered 5 years ago Pankaj VishwasRao #1

Try this

by this property exportable="false" column can be ignored

from export in p:dataExporter ..

<p:column exportable="false" >
    <p:commandButton 

    </p:commandButton>
</p:column>                                                                                                     

comments powered by Disqus