                 if (!filename.endsWith('.xlsx')) {
                                filename += '.xlsx';
                            }

                            var table = document.getElementById(tableID);
                            var workbook = XLSX.utils.table_to_book(table, {sheet: "Sheet1"});
                            XLSX.writeFile(workbook, filename);
                        }
                    </script>


                </h:form>

            </ui:define>

        </ui:composition>

    <