Navigate effectively in your JSF web app. Take control of the JSF runtime with the FacesContext object.
- [Instructor] What about navigation?…As we saw in the WelcomePageBean,…we're able to navigate to another page…by returning the name of the page…in a backing bean method…called by faces components…as we have here an h:commandButton…with action attributes bound…to that navigation method.…Let's try it out.…You notice that the URL in the browser…still refers to the previous page.…
We can avoid this by adding…the faces-redirect=true query parameter…to that return value.…Let's go to the page bean…and add that query parameter.…Start with a question mark…and say faces…hypen redirect…equals true.…Let's see how that works on the webpage.…
Now you see that the URL has changed…in the browser to actually be the current page.…How about transmitting and receiving…custom query parameters in a managed bean?…We've already seen the use of the FlashScope,…and that is the ideal way to transmit…information from bean to page,…or bean to bean.…Finally, let's talk about the FacesContext object.…This is what I like to call…the mother object of JSF.…
- 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.