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 2

JSF in practice, part 2 - Java EE Tutorial

From the course: Learning Java Enterprise Edition

Start my 1-month free trial

JSF in practice, part 2

- [Instructor] Let's look at how the tracker page is constructed. Looking at the web page rendering of the view you can see that we have a title. However, in the view there does not appear to be any header HTML tags that you would normally expect to contain the title. Though what you do see is a reference to the title track cargo in a UI element and above that a reference to a composite template. Now, it is this composite template that takes care of the rendering of the web pages' header, title and body. Let's navigate to this page and see how this view template works. As you can see, it looks very familiar to the previous page; and in fact uses the same Facelet technology. The only real difference is that its purpose is to define a reusable page structure. Here at the top you can see the page header defined, and in this section there is a UI insert element name title. This is the reusable component that takes the page title defined in the view and constructs it as part of the…

Contents