0

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.

Requirements

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:

XHTML Page

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

Download the codes

https://github.com/Turreta/JSF2-examples/tree/master/JSF2%20Data%20Table