DataExporter not exporting data only headers ( Primefaces v 14.0.9) #3340
Unanswered
praneethseeli
asked this question in
PrimeFaces
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The below simple code for datatable and exporter is not working, i see only headers in the xls not any data
This happened while migrating from Primefaces 13.0.0 to 14.0.9
<h:form id="frm_listToDo">
List Todos
<p:commandButton value="Excel"
styleClass="btn_autowidth">
<p:dataExporter type="xls" target="cjf_tbl_list" fileName="file" />
</p:commandButton>
<p:dataTable id="cjf_tbl_list"
value="#{dataTableTestController.todoLazyDataModel}" var="todo"
rows="#{dataTableTestController.initialPageSize}" lazy="true"
paginator="true"
rowsPerPageTemplate="#{dataTableTestController.pageSizeValues}"
paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
paginatorPosition="#{dataTableTestController.paginatorPosition}"
emptyMessage="No Todos! Please add Todo.">
<p:column id="clm_id" headerText="#{demoLbl['todo.clm.id']}"
sortBy="#{todo.id}">
<h:outputText id="out_id" value="#{todo.id}" />
</p:column>
<p:column id="clm_title" headerText="#{demoLbl['todo.title']}"
sortBy="#{todo.title}">
<h:outputText id="out_title" value="#{todo.title}" />
</p:column>
<p:column id="clm_description"
headerText="#{demoLbl['todo.description']}">
<h:outputText id="out_description" value="#{todo.description}" />
</p:column>
<p:column id="clm_priorit" headerText="#{demoLbl['todo.priority']}">
<h:outputText id="out_priority" value="#{todo.priority}" />
</p:column>
<p:column id="clm_duedate" headerText="#{demoLbl['todo.dueDate']}">
<h:outputText id="out_duedate" value="#{todo.duedate}">
<f:convertDateTime pattern="MM/dd/yyyy" type="localDateTime" />
</h:outputText>
</p:column>
<p:column id="clm_owner" headerText="#{demoLbl['todo.owner']}">
<h:outputText id="out_owner" value="#{todo.owner}" />
</p:column>
</p:dataTable>
</h:form>
Beta Was this translation helpful? Give feedback.
All reactions