Learn how to use the new JSF FileUpload component with AJAX.
- [Instructor] The JSF file output component is new…with JSF 2.2.…Prior to this version, you would've had to rely on third…party providers like Apache and PrimeFaces or worse…raw html to upload files in your JSF application,…which is obviously less than ideal.…We have a fresh page to work with here.…Let's start our work where all JSF input work starts from…the h form.…So throw in an h form over here on line nine.…
Open tags, close tags.…Now heads up, we need to change the encoding attributes…of the h form to support the file output component.…So we'll set enctype to multipart forward slash…form hyphen data.…The multipart slash form data encoding is the best encoding…type to transmit binary data over http.…
This isn't a JSF or java e constraint it's basic http.…That being done lets now introduce…our file upload components.…That's going to be the h inputFile component…open and close the tag.…Now, I've gone ahead and created a view scope bean…named the file upload bean for this exercise.…Let's add a field to bind to the value attributes of…
- 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.