Exercises
-
31.2 (
GuestbookApplication) Create a JSF web app that allows users to sign and view a guestbook. Use theGuestbookdatabase to store guestbook entries. [Note: A SQL script to create theGuestbookdatabase is provided in the examples directory for this chapter.] TheGuestbookdatabase has a single table,Messages, which has four columns:Date,Name,EmailandMessage. The database already contains a few sample entries. Using theAddressBookapp in Section 31.2 as your guide, create two Facelets pages and a managed bean. Theindex.xhtmlpage should show the Guestbook entries in tabular format and should provide a button to add an entry to the Guestbook. When the user clicks this button, display anaddentry.xhtmlpage. Provideh:inputText ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access