How to get the data of a Primefaces dataTable to use in a Javascript function by using the DataTable ID?
I have the following Primefaces datatable(part of it is shown below)which gets its values from a database. <p:dataTable id="datalist" value="#{debtPaymentsController.lazyDebtPayments}" var="item" selectionMode="single" selection="#{debtPaymentsController.selected}" lazy="true" widgetVar="debtPaymentsTable" paginator="true" scrollable="true" scrollWidth="100%" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowKey="#{index}" rowIndexVar="index" rows="10" rowsPerPageTemplate="10,20,30,40,50"> </p:datatable> I am trying to use a Javascript script to export the content of the datatable… Read More How to get the data of a Primefaces dataTable to use in a Javascript function by using the DataTable ID?