Learn how to use the JSF data table in this video.
- [Instructor] Let's try out a proper table with the H…data table component.…Together with the H column component, we can display…a table that lists arbitrary data from any type…of collection.…I say collection as in the generic collection interface…in Java.…This is new with Expression Language 3.0.…Prior to this, you could display data only from a list…or an array.…Let's display our available desserts from dessert DAO…in a data table.…We'll start with a panel group.…
So add a line break just after our UI repeats.…Let's break there and then add a new H panel group.…Let's use a div, layout should be block.…Don't forget to add the ID of a data table div.…Open and close the tag.…
So let's start now on line 29 with the H data table.…Open and close the tag.…The first thing we get to set up here is the source of data…by defining the value attributes so let's set our value…to the dessertDao and get desserts from it.…Then we set the var attribute, var of course each one…is a dessert.…
And that's a basic data table setup.…Next we need to add columns to the data table.…
- Why use JSF?
- How JSF works
- Using managed beans in JSF
- Building a JSF page using Facelets
- Using Ajax support in JSF
- Processing complex data with JSF converters
- Security in JSF
- JSF and third-party component libraries
Skill Level Beginner
1. Web Application Development in JavaEE
2. Build Your First JSF Page
3. Use Managed Beans in JSF
4. Build a JSF Page Using Facelets
5. Use Ajax Support in JSF
6. Process Complex Data with JSF Converters
7. Protect Your Application with JSF Validation
8. Security in JSF
9. Combine JSF with Other Frameworks
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.