Question: how to export excel data from datatable in jsf?
Answer: JSF doesn't provide any functionality to export data from a <h:dataTable> into a specific format. You may use PrimeFaces (an external library) that has a <p:dataExporter> component that provides this functionality, check the demo.