30.4.1 The Default index.xhtml Document: Introducing Facelets

This app contains a single web page and consists of two related files—a JSF document named index.xhtml (Fig. 30.5) and a supporting Java source-code file (Fig. 30.6), which we discuss in Section 30.4.2. First we discuss the markup in index.xhtml and the supporting source code, then we provide step-by-step instructions for creating this web app in Section 30.4.3. Most of the markup in Fig. 30.5 was generated by NetBeans. We’ve reformatted the generated code to match our coding conventions used throughout the book.

 1   <?xml version='1.0' encoding='UTF-8' ?>  2     3   <!-- index.xhtml -->  4   <!-- JSF page that displays the current time on the web server ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.