Software Development

JSF – Data Table Example

[wp_ad_camp_5]

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.

[wp_ad_camp_4]

And our EmployeeDTO class:

[wp_ad_camp_3]

XHTML Page

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

[wp_ad_camp_2]

Download the codes

[wp_ad_camp_1]

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

 

Loading

Got comments or suggestions? We disabled the comments on this site to fight off spammers, but you can still contact us via our Facebook page!.


You Might Also Like