JSF – Data Table Example

Last Updated on

This post shows a sample usage of JSF Data Table to construct a basic HTML on a page. You can download the source codes from the GitHub link provided at the very bottom of this page.


Stuff used in this post.

  • JSF 2.2
    • javax.faces-2.2.8.jar
  • JDK 8

JSF Managed Bean

The class only has a list of EmployeeDTO objects returned to the JSF framework.

And our EmployeeDTO class:


We will only use on page that displays a list of employees when a URL is accessed.

Download the codes



Karl San Gabriel

Karl San Gabriel

Professional Software Developer