Learn how to use standard JSF converters that come with the platform.
- [Instructor] JSF ships with a good selection…of default converters that can help…with very straightforward conversion scenarios.…With these, we can convert text values…from the webpage to Java objects and vice versa,…all with very little code.…Let's take some converters for a spin.…We will first test drive the BigDecimal converter.…I've added a BigDecimal field to the InputComponentPageBean…to accept moneyInput.…Having added the field to our backing bean,…I've also added a component to capture the input…on the Facelet's page.…
Here's our inputText for the bigDecimalInput…and its bound to the moneyInput field.…We also have an outputText box here to display…the captured moneyInput.…Now, let's configure our BigDecimal converter.…So, on the inputText field,…we'll set the converter attribute to be the fully qualified…class name of the converter, so for the BigDecimal,…we will use the javax.faces.BigDecimal.…
Let's save that.…Same for the outputText.…Let's configure the converter attribute…to be the same converter.…Copy that.…
- 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.