In this video, learn how to communicate feedback to the browser with the JSF message component.
- [Instructor] Let's look at how to use…the h:message components to display feedback on the webpage.…We've seen that kind of feedback before.…Like when we load the index page without supplying…the required guest parameter in the URL.…This is an implicitly generated h:message component.…Based on a configuration new with JSF 2.2.…Prior to this version, whenever an error occurs…on the server's side without deliberately…placing a message component on the Facelets page,…neither end user nor page developer…would know that anything went wrong.…
It was a real pain.…This is not to say that the message component…is useful only when bad things happen.…With plan and styling and design,…the message component is a great feedback tool.…Let's add a message component to this page…as part of the greeting.…We start by re-organizing here a little bit.…Let's add panelGrid so we can keep things in order,…columns should be two, let's close this out,…and close that down here.…
Now let's add our h:message component.…On line 19 we'll have h:message,…
- 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.