0
How to include a field in the dataPath (Primefaces) that is not in the datatable?
I am generating an Excel file from a datatable with dataExporter, but I need to include a column that does not exist in datatable.
This datatable are items of a lot and I need this number to be placed in a column, but I would not like it to be displayed in the list, because they would be repeated.
How to do?
Dude I don’t know if there’s a way, a solution would be to put the fields in the
dataTable
and give arendered="false"
so they don’t show off.– DiegoAugusto
With
rendered="false"
didn’t work.– Marcelo Gomes
A colleague passed me the solution, tested and worked. How to do? Add normally the column in the datatable and put
style="display:nome"
then include in datatablescrollable="true"
so that it does not generate empty columns at the end of the generated excel file.– Marcelo Gomes
Yeah, anything try that too:
<h:outputText value="#{bean.exemplo}" id="exemplo" style="visibility:hidden;">
– DiegoAugusto