Exercises

27.3(Guestbook Application) Create a JSF web page that allows users to sign and view a guestbook. Use the Guestbook database (provided in the examples directory for this chapter) to store guestbook entries. The Guestbook database has a single table, Messages, which has four columns: date, name, email and message. The database already contains a few sample entries. On the web page, provide Text Fields for the user’s name and email address and a Text Area for the message. Add a Submit Button and a Table component and configure the Table to display guestbook entries. Use the Submit Button’s action-handler method to insert a new row containing the user’s input and today’s date into the Guestbook database.
27.4(AddressBook Application Modification) ...

Get Java™ How to Program, Seventh 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.