Learn how to create custom converters for custom entities.
- [Instructor] Converting with stock JSF converters…is fun and all, but what about…when we need to have our user input…translated to our custom classes,…or objects, on the server side?…Or in reverse, we need to translate our custom java objects…into something nice for our web app user on the web page?…We go custom.…JSF allows us to very easily create and configure…a custom converter.…Let's convert the desserts submitted…by our dessert selection radio button,…into a dessert object, instead of a long variable…that it's saved to right now.…
Come here, we see right for now…that the selectOneRadio…is bound to the selectOneRadioSelection field…on componentListing, and when we go there,…we find that it's a long field.…So what we're going to do is…instead of binding it to a long field,…we'll bind it straight to the selectedDessert field,…which is a type dessert.…So, we have here a vanilla Java class.…
Let's make it a converter by implementing…the javax.faces to convert the converter interface.…This interface contains the methods…
- 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.