Learn how to implement simple Ajax functionality in your web application.
- [Instructor] Let's go back to our welcome page…and at Ajax supports to the components.…For the uninitiated, we're going to demonstrate…the magic that Ajax brings to the table.…Submitting this page triggers a full page refresh.…And we see the updated data in the output text component.…Being able to execute page actions with command components…selectively process input components…and update output components with new data,…all without fully refreshing the page…is why Ajax is such a necessary tool…in any web developer's toolkit.…
So, what's the easiest way we can Ajax this up?…It's really straightforward.…We first make sure that prependId is set to False…in our h:form on line 14,…then we just enclose all the components we need…to Ajaxify in the f:Ajax tag.…So we want to wrap all of this, f:ajax,…open and close tags.…Let's format that.…
And Save.…Then we need to set two attributes for the f:Ajax tag.…First, we set the render attribute.…Now, in the render attribute, we provide a list…of space separated component IDs of the components…
- 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.