dButton  
                                value="Export to Excel" 
                                ajax="false"
                                onclick="exportTableToExcel('myTable', 'tableData')"
                                styleClass="ui-button-success" icon="fas fa-file-excel">
                            </p:commandButton>

                        </p:panelGrid>


                        <!--DO NOT REMOVE THIS. WITHOUT THIS, THE dates list is NOT initiated-->
                        <h:dataTable val