Software Development

JSF – Data Table Example


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



Got comments, or suggestions? Please visit our Facebook page!

You Might Also Like