From the course: Learning Java Enterprise Edition

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JSF in practice, part 1

JSF in practice, part 1 - Java EE Tutorial

From the course: Learning Java Enterprise Edition

Start my 1-month free trial

JSF in practice, part 1

- [Narrator] In this video, you will see practical examples of how JSF interacts with CDI beans and events, and how that makes websites responsive. Okay, so as we saw earlier, the cargo tracking website's public tracking interface allows you to track a shipment and receive information about the cargo such as its current status, estimated time of arrival, and handling history. So let's have a look at this. Now let's see this again in more detail. As I start to enter the Tracking ID, you can see that it automatically suggest matching IDs. This is a nice feature that Facelets provides for us out of the box. In a moment, we'll see how this is implemented in code. Once the Tracking ID has been submitted, the cargo tracking information is retrieved from the database and displayed on the screen. Okay, so let's now take a peek at the code behind this webpage and see how this magic happens. But before we do, we need to know where to find the view. We can see from the URL that the Tracking page…

Contents