Develop a simple JSF page that accepts text input and redisplays it with a Facelets output component. Use basic JSF mechanisms like Facelets, expression language, and managed beans.
- [Instructor] Now let's get about building…our first JSF page.…We're going to create a page that allows us…to enter a name,…click on a button,…and say hello to that name,…displaying a welcome message.…This index.xhtml file has been created…for us by default by NetBeans.…There are already some entries inside this file,…we're just going to add a few more items.…Let's start with the h:form component.…
On line nine, we type h:form…open tag,…and then close tag.…I'll add a panel component…with the h: panelGrid component…for organizing our page elements.…So on line 10, we have h:panelGrid…open tag,…and close tag.…Let's set the columns attribute…on the h:panelGrid to two,…so columns…equals two.…
Inside our panelGrid,…let's have an outputLabel component,…and set the value attribute.…So on line 11, we have h:…outputLabel…open tag.…Let's set the value attribute to…"enter a name here".…Let's close the tag.…Let's throw in an inputText component…to accept text input from the user.…
So on line 12, we'll have…h:inputText.…Let's close the tag for now.…
- 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.