Complete common web application tasks with JSF managed beans and avoid common pitfalls and bugs in JSF managed bean design. Learn the rules for carrying out specific managed bean operations.
- [Instructor] One of the most pervasive mistakes…I've seen in the wild concerning JSF…is how to initialize data in a managed bean.…It may be local data within the managed bean,…or a data source like a database or a rest service.…One of my most popular answers in StackOverflow explains…this bug in detail.…Search JSF managed bean initialization to find it.…Let's say we need to display a list of dog breeds…in a JSF page.…
Our hypothetical Facelets page will pull this data…from the ViewScoped bean we created earlier.…Let's add a List, dogs.…Say it's a List of names.…Or Strings, rather.…Let's fix that.…Import.…And then, we encapsulate.…
We want the setter and the getter.…There.…We've defined our List variable of dogs,…encapsulated it,…and now we need to fill it with data.…It's sometimes tempting to do this in the getter of a list,…like so.…We have, dogs variable assigned to a new ArrayList.…
And then, we can add String, like say, corgi,…and one more, a retriever.…Or even in the constructor, we can do the same thing here,…
- 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.