Learn how to configure standard JSF validators.
- [Narrator] Validation in JSF describes the process…of protecting the server side code from bad user input…on the web tier.…This means applying components…to Facelet's Input Components and just Input Components,…to make sure that whatever's being passed…to those components meets the application's expectations.…To this end, JSF ships with a large assortment…of canned validators that help us achieve…a lot of common validation scenarios.…
Note that these validators come from the core JSF package,…and we will be using the f prefix the whole time.…Let's try out the f:validateLength validator…on our inputTextarea components.…So, we come to our inputTextarea here.…We close the tag up.…And then we nest the f:validateLength validator.…
Let's set a minimum length of 10 and a maximum length of 30.…We close that up.…Let's try it out.…Now we're on the web page, let's try out typing fewer…than 10 characters into this text box.…Say hello, and submit the form.…And there we have it.…We have a validation error,…and exactly what rule we're validating.…
- 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.