Generate SEO-friendly links with JSF components in this video.
- [Instructor] We'll now display a hyperlink…using the h: link component.…Let's put that hyperlink in the data table,…inside a column.…We'll Copy+Paste the existing column definition…there to reuse.…Let's name this column the Say Hello Hyperlink.…Then, we'll replace the h: outputText with an h: link,…whose value attribute will be, Say Hello To.…
And then, we define the Outcome attribute…to become the link that we want to be generated.…Let's send this hyperlink to take us to…our index.xhtml file, of course,…passing in the expected parameter, guest equals…the dessert name,…let's put that there.…Now, let's throw in a button.…
We'll reuse this column.…And then, we have a new column,…let's say, Say Hello Button.…And all we need to do is replace link with button.…Take note that the button here…is not like the Command button,…in that it cannot call back in Bean code.…It's used purely for navigation purposes.…Let's save this and see what it looks like on the webpage.…
And there we have it.…We have our hyperlink here,…and we have the Command button.…
- 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.